Skip to content

Commit 3fbec42

Browse files
committed
fix
1 parent 2ec874f commit 3fbec42

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

actions/preview/action.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,12 @@ runs:
1919
id: type
2020
shell: bash
2121
run: |
22-
if [[ "${{ github.event_name}}" == "push" && "${{ github.ref }}" == "refs/heads/main" ]]; then
23-
echo "IS_DEPLOYMENT=true" >> $GITHUB_OUTPUT
24-
echo "IS_CLEANUP=false" >> $GITHUB_OUTPUT
25-
else
2622
if [[ "${{ github.event_name }}" == "pull_request_target" && "${{ github.event.action }}" == "closed" ]]; then
2723
echo "IS_CLEANUP=true" >> $GITHUB_OUTPUT
2824
echo "IS_DEPLOYMENT=false" >> $GITHUB_OUTPUT
29-
else
30-
is_deployment=${{ toJSON(github.event_name == 'pull_request' || github.ref == 'refs/heads/main') }}
25+
elif [[ ${{ github.event_name }} == 'pull_request' || "${{ github.ref }}" == 'refs/heads/main' ]]; then
3126
echo "IS_CLEANUP=false" >> $GITHUB_OUTPUT
32-
echo "IS_DEPLOYMENT=${is_deployment}" >> $GITHUB_OUTPUT
27+
echo "IS_DEPLOYMENT=true" >> $GITHUB_OUTPUT
3328
fi
3429
3530
- name: Debug

0 commit comments

Comments
 (0)