diff --git a/action.yml b/action.yml index 496a0a9..d9a24a0 100644 --- a/action.yml +++ b/action.yml @@ -27,10 +27,21 @@ inputs: runs: using: composite steps: + - name: Set env (escaped) + id: env + shell: bash + run: | + { + echo "commit_message<> $GITHUB_ENV + { + echo "input_message<> $GITHUB_ENV - name: Set fields - env: - input_message: ${{ inputs.message }} - commit_message: ${{ github.event.head_commit.message }} shell: bash if: always() id: fields @@ -60,7 +71,11 @@ runs: commit_message="Link to the latest commit in the repository" message="" fi - echo "message=$message" >> $GITHUB_OUTPUT + { + echo "message<> $GITHUB_OUTPUT author=${{ github.event.pusher.name }} # context from `push` trigger author=${author:-${{ github.event.sender.login }}} # context from `workflow_dispatch` trigger