Skip to content

Commit

Permalink
added core library i think
Browse files Browse the repository at this point in the history
  • Loading branch information
ldraney committed Jan 11, 2024
1 parent 22c4b9c commit 91959d7
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/trigger-private-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,20 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4

# - name: try a fail action with script
# uses: actions/github-script@v7
# with:
# script: |
# const triggerAndWait = require('./.github/scripts/set-failed-test.js');
# triggerAndWait({ github, context, core });

- name: Trigger and Wait for Workflow
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DISPATCH_PAT }}
script: |
const path = '.github/scripts/set-failed-test.js';
const path = '.github/scripts/trigger-regression.js';
const triggerAndWait = require(path);
triggerAndWait({github, context});
# - name: Trigger and Wait for Workflow
# uses: actions/github-script@v6
# with:
# github-token: ${{ secrets.DISPATCH_PAT }}
# script: |
# const path = '.github/scripts/trigger-regression.js';
# const triggerAndWait = require(path);
# triggerAndWait({github, context});
triggerAndWait({github, context, core});

0 comments on commit 91959d7

Please sign in to comment.