Unverified Commit f6babb42 authored by Leah's avatar Leah Committed by GitHub

fix(CI): retry-test action can't use env in `if` (#58838)

parent 0cb1c404
......@@ -8,7 +8,6 @@ on:
- completed
env:
MAX_RETRIES: 3
SLACK_WEBHOOK_URL: ${{ secrets.BROKEN_CANARY_SLACK_WEBHOOK_URL }}
permissions:
......@@ -17,7 +16,7 @@ permissions:
jobs:
retry-on-failure:
name: retry failed jobs
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < fromJSON(env.MAX_RETRIES) }}
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 3 }}
runs-on: ubuntu-latest
steps:
- name: send retry request to GitHub API
......@@ -32,7 +31,7 @@ jobs:
report-failure:
name: report failure to slack
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt >= fromJSON(env.MAX_RETRIES) }}
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt >= 3 }}
runs-on: ubuntu-latest
steps:
- name: send webhook
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment