We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5604b9 + 1cc71e4 commit cf258f2Copy full SHA for cf258f2
1 file changed
.github/workflows/lint.yml
@@ -15,7 +15,8 @@ jobs:
15
steps:
16
- uses: actions/checkout@v6.0.2
17
with:
18
- ref: ${{ github.event.pull_request.head.ref || github.ref }}
+ ref: ${{ github.event.pull_request.head.sha || github.ref }}
19
+ repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
20
21
- name: Setup Ruby
22
uses: ruby/setup-ruby@v1.299.0
@@ -38,8 +39,11 @@ jobs:
38
39
fi
40
41
- name: Commit and push changes
- 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 }}
45
run: |
46
+ git checkout -b "$HEAD_REF"
47
git add .
48
git commit -m "chore: auto-corrected with RuboCop"
- git push
49
+ git push origin "$HEAD_REF"
0 commit comments