From 16be52ed55e79ee453b0f2fc734eef2038a405da Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Thu, 7 Aug 2025 05:58:31 +0200 Subject: [PATCH] Do not run notify-release-on-prs.ts for forks (#3705) --- .github/workflows/android-release.yml | 1 + .github/workflows/ios-ci.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 617ca0c63..bd3936bd0 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -160,6 +160,7 @@ jobs: working-directory: . - name: Write release notifications + if: github.repository_owner == 'maplibre' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: node .github/scripts/notify-release-on-prs.ts --tag ${{ needs.android-create-release.outputs.version_tag }} diff --git a/.github/workflows/ios-ci.yml b/.github/workflows/ios-ci.yml index 53ac9c57b..05e88e255 100644 --- a/.github/workflows/ios-ci.yml +++ b/.github/workflows/ios-ci.yml @@ -30,6 +30,7 @@ permissions: id-token: write # needed for AWS contents: write # allow making a release actions: write # for triggering ios-release-cocoapods.yml + issues: write # for notify-release-on-prs.ts jobs: pre_job: @@ -366,7 +367,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Write release notifications - if: env.make_release + if: env.make_release && github.repository_owner == 'maplibre' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: node .github/scripts/notify-release-on-prs.ts --tag ios-v${{ env.version }}