Skip to content

Commit b4bd4f3

Browse files
authored
CI: Tighter PR checking (#4650)
1 parent 43f5f37 commit b4bd4f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: Set alias branch name for Cloudflare (if a pull_request)
7676
id: branch_pull
77-
if: github.event_name != 'push'
77+
if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request'
7878
run: |
7979
echo "BRANCH=PR${{ github.event.pull_request.number }}" >> $GITHUB_ENV
8080
@@ -87,7 +87,7 @@ jobs:
8787
command: pages deploy src/dist --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} --branch=${{ env.BRANCH }} --commit-dirty=true
8888

8989
- name: Add deployment comment
90-
if: github.event_name != 'push'
90+
if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request'
9191
uses: thollander/actions-comment-pull-request@v3
9292
with:
9393
message: |

0 commit comments

Comments
 (0)