Skip to content

Commit

Permalink
Add trigger redeployment step to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EHJ-52n committed Dec 2, 2024
1 parent 6c7b5ce commit abee43d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/docker-build-push-read2burn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,16 @@ jobs:
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
-
name: Trigger redeployment
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GHA_WORKFLOW_TRIGGER }}
script: |
const result = await github.rest.actions.createWorkflowDispatch({
owner: '${{ secrets.TRIGGER_ORGA }}',
repo: '${{ secrets.TRIGGER_REPO }}',
workflow_id: '${{ secrets.TRIGGER_WORKFLOW_1 }}',
ref: '${{ secrets.TRIGGER_REF }}'
})
console.log(result)

0 comments on commit abee43d

Please sign in to comment.