Skip to content

Commit

Permalink
test(ci): add write permissions for actions (#56)
Browse files Browse the repository at this point in the history
Co-authored-by: kkscilife <[email protected]>
  • Loading branch information
kkscilife and kkscilife authored Feb 26, 2024
1 parent bb20142 commit 0a8f628
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rerun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
on-failure:
runs-on: ubuntu-latest
permissions:
actions: write
if: ${{ (github.event.workflow_run.head_branch == 'main' || github.event.workflow_run.head_branch == 'develop') && github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 3 }}
steps:
- run: |
Expand Down

0 comments on commit 0a8f628

Please sign in to comment.