Skip to content

Commit

Permalink
use an environment variable to print the detected commit message (#5)
Browse files Browse the repository at this point in the history
This avoids expanding (and potentially executing) the commit message.
  • Loading branch information
keewis authored Sep 20, 2023
1 parent 74ddc46 commit 10cd2bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ runs:
- name: show detection result
run: |
echo "::group::final summary"
echo "commit message: ${{ steps.detect-trigger.outputs.COMMIT_MESSAGE }}"
echo "commit message: $COMMIT_MESSAGE"
echo "trigger keyword: ${{ inputs.keyword }}"
echo "trigger found: ${{ steps.detect-trigger.outputs.CI_TRIGGERED }}"
echo "::endgroup::"
shell: bash
env:
COMMIT_MESSAGE: "${{ steps.detect-trigger.outputs.COMMIT_MESSAGE }}"
branding:
color: 'orange'
icon: 'git-commit'

0 comments on commit 10cd2bf

Please sign in to comment.