Skip to content

Commit 65549b2

Browse files
committed
Fix
1 parent df498ad commit 65549b2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
continue-on-error: true # Will fail if nothing to commit
146146

147147
- name: Comment on PR
148-
if: ${{ steps.git_commit.outcome == 'success' }}
148+
if: ${{ steps.git-commit.outcome == 'success' }}
149149
uses: marocchino/sticky-pull-request-comment@v2
150150
with:
151151
number: ${{ github.event.pull_request.number }}
@@ -164,14 +164,16 @@ jobs:
164164
**Run**: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
165165
166166
- name: git push
167-
run: git push origin HEAD:${{ github.event.pull_request.head.ref }}
167+
run: git push origin HEAD:${{ env.HEAD_REF }}
168+
env:
169+
HEAD_REF: ${{ github.event.pull_request.head.ref }}
168170
if: steps.git-commit.outcome == 'success'
169171

170172
# This step is not really needed as the earlier push should cancel this run anyways.
171173
# But we are making sure that we abort if we had badly formatted files.
172174
- name: Exit if changed
173175
run: exit 1
174-
if: ${{ steps.git_commit.outcome == 'success' }}
176+
if: ${{ steps.git-commit.outcome == 'success' }}
175177

176178
rust_tests:
177179
if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}

0 commit comments

Comments
 (0)