Skip to content

Commit

Permalink
try get alt name
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Aug 5, 2024
1 parent 2a9d0b8 commit b0afe47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:


# should always run unless we know and expect the upgrade to be breaking. In that case we wither explicitly name the branch with breaking, or the commit message as "[breaking]" (for example in the PR title)
- name: get commit names
- name: get commit message
run: |
echo LAST_COMMIT_MSG=$(git log $GITHUB_SHA --pretty=%B) >> ${GITHUB_ENV}
echo "LAST_COMMIT_MSG_ALT=${{ github.event.workflow_run.head_commit.message }}" >> ${GITHUB_ENV}
echo LAST_COMMIT_MSG=$(git --no-pager log $GITHUB_SHA -n 1 --pretty=%B) >> ${GITHUB_ENV}
echo "LAST_COMMIT_MSG_ALT=git --no-pager log $GITHUB_REF_NAME -n 1 --pretty=%B" >> ${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 b0afe47

Please sign in to comment.