File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ jobs:
135135 secrets :
136136 api_bot_pat : ${{ secrets.API_BOT_PAT }}
137137 mms_deployed_sha_url : ${{ secrets.MMS_DEPLOYED_SHA_URL_PROD }}
138+ jira_api_token : ${{ secrets.JIRA_API_TOKEN }}
138139 with :
139140 aws_default_region : ${{ vars.AWS_DEFAULT_REGION}}
140141 aws_s3_role_to_assume : ${{ vars.AWS_S3_ROLE_TO_ASSUME }}
Original file line number Diff line number Diff line change 2727 required : true
2828 mms_deployed_sha_url :
2929 required : true
30-
30+ jira_api_token :
31+ required : true
3132permissions :
3233 contents : write
3334 issues : write
@@ -88,10 +89,21 @@ jobs:
8889 branch : ${{env.target_branch}}
8990 file_pattern : " openapi/v1-deprecated/*"
9091
92+
93+ retry-handler :
94+ needs : [release-v1-oas-apis]
95+ if : ${{ always() && contains(needs.*.result, 'failure') && fromJSON(github.run_attempt) < 3}}
96+ runs-on : ubuntu-latest
97+ steps :
98+ - env :
99+ GH_REPO : ${{ inputs.branch }}
100+ GH_TOKEN : ${{ secrets.api_bot_pat }}
101+ run : gh workflow run retry-handler.yml -F run_id=${{ github.run_id }}
102+
91103 failure-handler :
92104 name : Failure Handler
93- needs : [ release-v1-oas-apis ]
94- if : ${{ always() && contains(needs.*.result, 'failure') }}
105+ needs : [retry-handler, release-v1-oas-apis ]
106+ if : ${{ always() && contains(needs.*.result, 'failure') && needs.retry-handler.result == 'skipped' }}
95107 uses : ./.github/workflows/failure-handler.yml
96108 with :
97109 env : ${{ inputs.env }}
You can’t perform that action at this time.
0 commit comments