Skip to content

Commit

Permalink
try github.event.head_commit.message
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Aug 3, 2024
1 parent 816477f commit bf4d83e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:
DIEM_FORGE_NODE_BIN_PATH: ${{github.workspace}}/diem-node
LIBRA_CI: 1
MODE_0L: "TESTNET"
LAST_COMMIT_MSG: ${{github.event.head_commit.message}}

jobs:
upgrades:
Expand Down Expand Up @@ -47,6 +48,7 @@ jobs:

- name: Print branch name
run: |
echo $LAST_COMMIT_MSG
echo "ref: ${{ github.ref }}"
echo "ref name: ${{ github.ref_name }}"
echo "head ref: ${{ github.head_ref }}"
Expand All @@ -56,17 +58,18 @@ jobs:
id: check_breaking_commit
run: |
git log -1 --pretty=%B
echo LAST_COMMIT_MESSAGE="$(git --no-pager log -1 --pretty=%B)" >> $GITHUB_ENV
if echo $LAST_COMMIT_MESSAGE | grep -q "\[breaking\]"; then
echo LAST_COMMIT_MSG_ALT=${{github.event.head_commit.message}} >> $GITHUB_ENV
if echo $LAST_COMMIT_MSG | grep -q "\[breaking\]"; then
echo "HAS_BREAKING_COMMIT=true" >> $GITHUB_ENV
else
echo "HAS_BREAKING_COMMIT=false" >> $GITHUB_ENV
fi
echo $HAS_BREAKING_COMMIT
- name: upgrade - should be backwards compatible

run: |
echo $HAS_BREAKING_COMMIT
echo $LAST_COMMIT_MSG_ALT
echo Branch name inside check: ${{ github.head_ref }}
echo env.HAS_BREAKING_COMMIT ${{ env.HAS_BREAKING_COMMIT }}"

0 comments on commit bf4d83e

Please sign in to comment.