Skip to content

Commit

Permalink
ci: get last commit msg
Browse files Browse the repository at this point in the history
  • Loading branch information
liangpinglk committed Feb 5, 2024
1 parent 2708451 commit aef9e9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ env:
IMAGE_NAME: test/test
jobs:
Explore-GitHub-Actions:
env:
LAST_COMMIT_MSG: ${{ github.event.head_commit.message }}
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
Expand Down Expand Up @@ -42,4 +44,5 @@ jobs:
echo ${{ github.ref_name }}
echo $IMAGE_NAME:$IMAGE_TAG
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: echo "last commit msg $LAST_COMMIT_MSG"

0 comments on commit aef9e9b

Please sign in to comment.