File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1414 required : true
1515 github_repo :
1616 description : " The repository to rerun the workflow"
17- required : true
17+ required : false
1818 distinct_id :
1919 description : " The distinct id of the workflow to rerun"
2020 required : false
2121
22+ run-name : ci auto rerun failed jobs - attempt ${{ inputs.attempts }}
23+
2224jobs :
2325 gh-cli-rerun :
2426 name : rerun - attempt ${{ inputs.attempts }}
2527 permissions :
2628 actions : write
2729 runs-on : ubuntu-latest
2830 env :
29- GH_TOKEN : " ${{ secrets.PERSONAL_TOKEN || github.token }}"
31+ GH_TOKEN : " ${{ secrets.AUTO_RERUN || github.token }}"
3032 steps :
3133 - name : Host - Checkout action ${{ inputs.distinct_id }}
3234 uses : actions/checkout@v4
5254 printf '\n%b\n' "🟥 Failures at:\n\n\`\`\`log\n${failures}\n\`\`\`" >> $GITHUB_STEP_SUMMARY
5355 printf '\n%b\n' "🟦 Attempt: ${{ inputs.attempts }} - Rerun failed jobs in ${{ inputs.run_id }} :hammer:" >> $GITHUB_STEP_SUMMARY
5456
55- if gh run watch ${{ inputs.run_id }} --exit-status; then
57+ if gh run watch ${{ inputs.run_id }} --exit-status --repo "${github_repo}" ; then
5658 printf '\n%b\n' "✅ Attempt: ${{ inputs.attempts }} succeeded 😺" >> $GITHUB_STEP_SUMMARY
5759 else
5860 printf '\n%b\n' "❌ Attempt: ${{ inputs.attempts }} failed 😾" >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments