Skip to content

Commit 844b294

Browse files
committed
write comment only on PR event
1 parent d834dc7 commit 844b294

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/actions/amplify-preview/action.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ runs:
8787
echo "COMMIT_ID=$(jq -r '.commitId' <<< "$job_info")" >> $GITHUB_OUTPUT
8888
8989
- uses: actions/github-script@v7
90+
if: ${{ github.event_name == "pull_request" }}
9091
env:
9192
PREVIEW_URL: ${{ steps.get_amplify_branch.outputs.PREVIEW_URL }}
9293
UPDATE_TIME: ${{ steps.get_amplify_branch.outputs.UPDATE_TIME }}

0 commit comments

Comments
 (0)