File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1515 steps :
1616 - uses : actions/checkout@v6.0.2
1717 with :
18- ref : ${{ github.event.pull_request.head.ref || github.ref }}
18+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
19+ repository : ${{ github.event.pull_request.head.repo.full_name || github.repository }}
1920
2021 - name : Setup Ruby
2122 uses : ruby/setup-ruby@v1.299.0
3839 fi
3940
4041 - name : Commit and push changes
41- if : env.changes == 'true'
42+ if : env.changes == 'true' && github.event.pull_request.head.repo.full_name == github.repository
43+ env :
44+ HEAD_REF : ${{ github.event.pull_request.head.ref }}
4245 run : |
46+ git checkout -b "$HEAD_REF"
4347 git add .
4448 git commit -m "chore: auto-corrected with RuboCop"
45- git push
49+ git push origin "$HEAD_REF"
You can’t perform that action at this time.
0 commit comments