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 }}