From 2e68c30d8d702bf4dfb34997af7f15f78bb47e5b Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Fri, 1 Aug 2025 20:38:05 +0200 Subject: [PATCH] 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 image image --- .github/workflows/deploy.yml | 2 ++ .github/workflows/publish.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fc7b609a..29f2d85d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index be86bc58..b6edad35 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,6 +12,9 @@ jobs: contents: read id-token: write + # Skip publishing for forks + if: github.repository_owner == 'denoland' + steps: - uses: actions/checkout@v4