Skip to content

Commit

Permalink
more reliable way of getting the git commit message (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolyatmax authored Aug 15, 2024
1 parent f132b74 commit 37b2549
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ runs:
username: ${{ env.JAMCR_USER }}
password: ${{ env.JAMCR_PASS }}

- name: Get commit message
shell: bash
run: |
COMMIT_MSG=$(git log -1 --pretty=%B)
echo "COMMIT_MSG=$COMMIT_MSG" >> $GITHUB_ENV
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
Expand All @@ -64,7 +70,7 @@ runs:
type=raw,value=${{ inputs.tag }}
labels: |
hash=${{ github.sha }}
message=${{ github.event.head_commit.message }}
message=${{ env.COMMIT_MSG }}
branch=${{ github.ref_name }}
repository=${{ github.repository }}
Expand Down

0 comments on commit 37b2549

Please sign in to comment.