Skip to content

Commit

Permalink
ci: set timeout in teardown surge deployments (#779)
Browse files Browse the repository at this point in the history
Ensure the step doesn't take too much time.
A slack message is sent in case of timeout.

### Notes

Covers #771

### Resources

GitHub docs:
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idstepstimeout-minutes
  • Loading branch information
tbouffard authored Sep 4, 2024
1 parent eb3ce63 commit e9bafe4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/teardown-inactive-surge-deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
teardown_inactive_deployement:
runs-on: ubuntu-22.04
steps:
- name: Teardown surge deployement inactive than more 1 month
- name: Teardown deployments older than 1 month
uses: adrianjost/actions-surge.sh-teardown@v1.0.3
timeout-minutes: 10
with:
regex: '[1-9]+ month.? ago'
env:
Expand Down

0 comments on commit e9bafe4

Please sign in to comment.