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: .
|
working-directory: .
|
||||||
|
|
||||||
- name: Write release notifications
|
- name: Write release notifications
|
||||||
|
if: github.repository_owner == 'maplibre'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: node .github/scripts/notify-release-on-prs.ts --tag ${{ needs.android-create-release.outputs.version_tag }}
|
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
|
id-token: write # needed for AWS
|
||||||
contents: write # allow making a release
|
contents: write # allow making a release
|
||||||
actions: write # for triggering ios-release-cocoapods.yml
|
actions: write # for triggering ios-release-cocoapods.yml
|
||||||
|
issues: write # for notify-release-on-prs.ts
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre_job:
|
pre_job:
|
||||||
@@ -366,7 +367,7 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Write release notifications
|
- name: Write release notifications
|
||||||
if: env.make_release
|
if: env.make_release && github.repository_owner == 'maplibre'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: node .github/scripts/notify-release-on-prs.ts --tag ios-v${{ env.version }}
|
run: node .github/scripts/notify-release-on-prs.ts --tag ios-v${{ env.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user