Skip to content

Commit

Permalink
fix: longer timeout for unplayable job (#9321)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <matt.krick@gmail.com>
  • Loading branch information
mattkrick committed Jan 10, 2024
1 parent dc6be15 commit 60320e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ jobs:
- name: Push to staging
uses: nick-fields/retry@v2
with:
timeout_minutes: 1
max_attempts: 20
timeout_minutes: 5
max_attempts: 100
retry_wait_seconds: 5
# If the job isn't created yet, will return {"message":"400 Bad request - Unplayable Job"}
command: |
RES=$(curl "https://gitlab.com/api/v4/projects/${{ vars.GITLAB_PROJECT_ID }}/jobs/${{ env.JOB_ID }}/play" \
--request POST \
--header 'PRIVATE-TOKEN: ${{ secrets.GITLAB_API_TOKEN }}')
echo $RES
JOB_ID_DONE=$(echo $RES | jq .id)
echo $JOB_ID_DONE
[ -z "$JOB_ID_DONE" ] && exit 1
- name: Open PR to Push to Prod
env:
Expand Down

0 comments on commit 60320e4

Please sign in to comment.