Skip to content

Commit

Permalink
try wirkflow run head commit
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Aug 5, 2024
1 parent 5257339 commit 2a9d0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: get commit names
run: |
echo LAST_COMMIT_MSG=$(git log $GITHUB_SHA --pretty=%B) >> ${GITHUB_ENV}
echo "LAST_COMMIT_MSG_ALT=${{github.event.pull_request.commits[0].message}}" >> ${GITHUB_ENV}
echo "LAST_COMMIT_MSG_ALT=${{ github.event.workflow_run.head_commit.message }}" >> ${GITHUB_ENV}
# better to do it in a new context so the env has been saved
- name: eval breaking
run: |
Expand Down

0 comments on commit 2a9d0b8

Please sign in to comment.