Skip to content

Commit 837e421

Browse files
committed
fix: variable for pr-closed/merged to be true/false
1 parent 54fddae commit 837e421

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ runs:
147147
- name: "Vars: PR Closed/Merged"
148148
shell: bash
149149
run: |
150-
echo "IS_PR_CLOSED_OR_MERGED=${{ github.event.pull_request && (github.event.pull_request.closed_at || github.event.pull_request.merged) }}" >> $GITHUB_ENV
150+
PR_CLOSED_OR_MERGED="${{ github.event.pull_request && (github.event.pull_request.closed_at || github.event.pull_request.merged) }}"
151+
if [ -n "$PR_CLOSED_OR_MERGED" ] && [ "$PR_CLOSED_OR_MERGED" != "false" ]; then
152+
echo "IS_PR_CLOSED_OR_MERGED=true" >> $GITHUB_ENV
153+
else
154+
echo "IS_PR_CLOSED_OR_MERGED=false" >> $GITHUB_ENV
155+
fi
151156
152157
- name: "Vars: Prod or Preview"
153158
shell: bash

0 commit comments

Comments
 (0)