ci: reduce workflow failures on forks (#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"
/>
This commit is contained in:
Christian Svensson
2025-08-01 20:38:05 +02:00
committed by GitHub
parent b120245332
commit 2e68c30d8d
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -29,6 +29,8 @@ jobs:
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
# Skip publishing for forks
if: github.repository_owner == 'denoland'
with:
project: "fresh"
entrypoint: "./www/_fresh/server.js"
+3
View File
@@ -12,6 +12,9 @@ jobs:
contents: read
id-token: write
# Skip publishing for forks
if: github.repository_owner == 'denoland'
steps:
- uses: actions/checkout@v4