Skip to content

Commit

Permalink
try again with dispatch event
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk-Peters-BF committed Jan 27, 2023
1 parent 0f6c9f8 commit a13a599
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,16 @@ jobs:
with:
name: unit test results
path: '**/test-results.trx'
reporter: dotnet-trx
reporter: dotnet-trx
- name: notify successful execution
uses: actions/github-script@v6
if: success()
id: event-script
with:
result-encoding: string
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'codeql-analysis.yml',
ref: context.ref,
})
await github.rest.repos.createDispatchEvent({
owner: context.repo.owner,
repo: context.repo.repo,
event_type: "ci-successful",
client_payload: { sha: context.sha, ref_name: context.ref.replace("refs/heads/", "") }
}).then(console.log).catch(console.error);
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
schedule:
- cron: '18 18 * * 4'
workflow_dispatch:
repository_dispatch:
types: [ ci-successful ]

jobs:
analyze:
Expand Down

0 comments on commit a13a599

Please sign in to comment.