Retry Workflow Build Linux packages #712
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Retry Workflow Build Linux packages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - v*.*.* | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 4 * * *' | |
| jobs: | |
| retry_workflow: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
| # TODO Why is this needed? | |
| #- name: Retry workflow | |
| # env: | |
| # GH_TOKEN: ${{ github.token }} | |
| # run: | | |
| # echo "Giving the workflow a 5 minute head start" | |
| # sleep 300 | |
| # echo "Retrying workflow" | |
| # scripts/cicd/gha/retry_workflow.sh "Build Linux Packages" | |
| - name: Notify Slack on Failure | |
| if: ${{ failure() && github.ref_name == 'master' }} | |
| uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0.0 | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| with: | |
| status: ${{ job.status }} | |
| steps: ${{ toJson(steps) }} | |
| channel: '#eng-dataset-cloud-tech' |