Do not run notify-release-on-prs.ts for forks (#3705)
This commit is contained in:
1
.github/workflows/android-release.yml
vendored
1
.github/workflows/android-release.yml
vendored
@@ -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 }}
|
||||
|
||||
3
.github/workflows/ios-ci.yml
vendored
3
.github/workflows/ios-ci.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user