Skip to content

Commit 0221f69

Browse files
committed
chore(ci): pr handling cleanup
1 parent a64a476 commit 0221f69

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ jobs:
5454
dnslink-update:
5555
runs-on: ubuntu-latest
5656
needs: deploy-ipfs
57-
if: github.event.workflow_run.head_branch == 'main'
57+
if: |
58+
github.event.workflow_run.event == 'push' &&
59+
github.event.workflow_run.head_branch == 'main'
5860
environment:
5961
name: 'cf-dnslink'
6062
url: "https://cid-ipfs-tech.ipns.inbrowser.link/"
@@ -72,6 +74,7 @@ jobs:
7274
deploy-gh-pages:
7375
if: |
7476
github.event.workflow_run.conclusion == 'success' &&
77+
github.event.workflow_run.event == 'push' &&
7578
github.event.workflow_run.head_branch == 'main'
7679
runs-on: ubuntu-latest
7780
permissions:

0 commit comments

Comments
 (0)