Skip to content

Commit 2e68c30

Browse files
authored
ci: reduce workflow failures on forks (denoland#3176)
Publishing packages workflow and deploying to Deno Deploy step runs even for forks. This is annoying, since it creates some spam every push for any open PR's. This PR tries to address this, by skipping certain steps or workflows unless the current GitHub org is `denoland`, which should be pretty safe long term. ## Failed workflow spam <img width="1396" height="635" alt="image" src="https://github.com/user-attachments/assets/d939d1f5-e736-42a4-9355-f946b3d6ddf2" /> <img width="1577" height="905" alt="image" src="https://github.com/user-attachments/assets/fbf7ffe3-2759-430a-a33e-c8de0d7e113c" />
1 parent b120245 commit 2e68c30

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929

3030
- name: Upload to Deno Deploy
3131
uses: denoland/deployctl@v1
32+
# Skip publishing for forks
33+
if: github.repository_owner == 'denoland'
3234
with:
3335
project: "fresh"
3436
entrypoint: "./www/_fresh/server.js"

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
contents: read
1313
id-token: write
1414

15+
# Skip publishing for forks
16+
if: github.repository_owner == 'denoland'
17+
1518
steps:
1619
- uses: actions/checkout@v4
1720

0 commit comments

Comments
 (0)