Skip to content

Commit

Permalink
allow trigger retries
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 29, 2023
1 parent 057cf6e commit d539677
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ jobs:
- name: Trigger Deploy Workflow
uses: actions/github-script@v7
with:
debug: ${{ secrets.ACTIONS_RUNNER_DEBUG }}
github-token: ${{ steps.app-token.outputs.token }}
retries: 3
retry-exempt-status-codes: 204
script: |
await github.rest.actions.createWorkflowDispatch({
github.rest.actions.createWorkflowDispatch({
owner: 'aodn',
repo: 'appdeploy',
workflow_id: 'deploy.yml',
Expand All @@ -103,6 +104,5 @@ jobs:
app_name: 'sample-django-app',
environment: 'development',
image_tag: '${{ needs.build_test_push.outputs.image_digest }}',
terragrunt_action: 'apply'
},
}
})

0 comments on commit d539677

Please sign in to comment.