Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,21 @@ inputs:
runs:
using: composite
steps:
- name: Set env (escaped)
id: env
shell: bash
run: |
{
echo "commit_message<<EOF"
echo "${{ github.event.head_commit.message }}"
echo "EOF"
} >> $GITHUB_ENV
{
echo "input_message<<EOF"
echo "${{ inputs.message }}"
echo "EOF"
} >> $GITHUB_ENV
- name: Set fields
env:
input_message: ${{ inputs.message }}
commit_message: ${{ github.event.head_commit.message }}
shell: bash
if: always()
id: fields
Expand Down Expand Up @@ -60,7 +71,11 @@ runs:
commit_message="Link to the latest commit in the repository"
message="<https://github.com/${{ inputs.repository }}/commit/${{ github.sha }}|$commit_message>"
fi
echo "message=$message" >> $GITHUB_OUTPUT
{
echo "message<<EOF"
echo "$message"
echo "EOF"
} >> $GITHUB_OUTPUT

author=${{ github.event.pusher.name }} # context from `push` trigger
author=${author:-${{ github.event.sender.login }}} # context from `workflow_dispatch` trigger
Expand Down
Loading