Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davi17g committed Apr 14, 2024
1 parent d1fc88c commit 7461631
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
name: Invoke docker image build
name: build images
with:
debug: true
github-token: ${{ secrets.PAT }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: '${{ secrets.ORG }}',
repo: '${{ secrets.REPO }}',
workflow_id: 'hello-world.yml',
ref: 'APPS-1189-improve-release-github-action-workflow'
})
try {
await github.rest.actions.createWorkflowDispatch({
owner: '${{ secrets.ORG }}',
repo: '${{ secrets.REPO }}',
workflow_id: 'hello-world.yml',
ref: 'APPS-1189-improve-release-github-action-workflow'
client_payload: '{tag: 0.3.0}'
})
console.log(result);
} catch(error) {
console.error(error);
core.setFailed(error);
}

0 comments on commit 7461631

Please sign in to comment.