From d539677d3af8e3280c4b737999d6e31fbaad5d2a Mon Sep 17 00:00:00 2001 From: digorgonzola <29941279+digorgonzola@users.noreply.github.com> Date: Sat, 30 Dec 2023 01:44:51 +1100 Subject: [PATCH] allow trigger retries --- .github/workflows/build-development.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-development.yml b/.github/workflows/build-development.yml index fed8821..ab7d5b1 100644 --- a/.github/workflows/build-development.yml +++ b/.github/workflows/build-development.yml @@ -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', @@ -103,6 +104,5 @@ jobs: app_name: 'sample-django-app', environment: 'development', image_tag: '${{ needs.build_test_push.outputs.image_digest }}', - terragrunt_action: 'apply' - }, + } })