Skip to content

Commit

Permalink
Update action.yml : improved posix compatibility
Browse files Browse the repository at this point in the history
MacOS requires setting '-' in |paste -sd , | explicitly to support unix pipe.
  • Loading branch information
RarogCmex authored Jul 11, 2023
1 parent 1568c8a commit 6fc2d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ runs:
export LC_ALL=en_US.utf8
git log $(git describe --abbrev=0 2> /dev/null || git rev-list --max-parents=0 HEAD)..HEAD | \
grep -oE "${{ inputs.jira-project-key }}-[[:digit:]]{1,}" | sort | uniq | \
sed 's/^\|$/"/g' | paste -sd , | awk '{print "RELATED_JIRA_ISSUES="$0}' >> $GITHUB_ENV
sed 's/^\|$/"/g' | paste -sd , - | awk '{print "RELATED_JIRA_ISSUES="$0}' >> $GITHUB_ENV
shell: bash

- name: Create json and invoke webhook
Expand Down

0 comments on commit 6fc2d2c

Please sign in to comment.