Skip to content

Commit 8f3f254

Browse files
ShaharNavehyouknowone
authored andcommitted
Fix
1 parent f92b366 commit 8f3f254

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
@@ -146,7 +146,7 @@ jobs:
146146
continue-on-error: true # Will fail if nothing to commit
147147

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

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

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

0 commit comments

Comments
 (0)