Skip to content

Commit 6b2db73

Browse files
committed
Scope some workflows to the main repository
It makes little sense to run these GitHub workflows anywhere but in the `git-for-windows` org; In fact, it may cause mayhem if attempting to run them elsewhere, so let's prevent that footgun. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 513b8bb commit 6b2db73

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

.github/workflows/break-pacman-upload-lease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
break-lease:
9+
if: github.event.repository.owner.login == 'git-for-windows'
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Clone build-extra

.github/workflows/build-and-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ env:
3636

3737
jobs:
3838
build:
39+
if: github.event.repository.owner.login == 'git-for-windows'
3940
runs-on: ${{ github.event.inputs.architecture == 'aarch64' && fromJSON('["Windows", "ARM64"]') || 'windows-latest' }}
4041
steps:
4142
- uses: actions/checkout@v4

.github/workflows/open-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ env:
2424

2525
jobs:
2626
open-pr:
27+
if: github.event.repository.owner.login == 'git-for-windows'
2728
runs-on: windows-latest
2829
steps:
2930
- name: Determine REPO

.github/workflows/release-git.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ env:
2525
jobs:
2626
setup:
2727
runs-on: ubuntu-latest
28+
if: github.event.repository.owner.login == 'git-for-windows'
2829
outputs:
2930
display-version: ${{ steps.bundle-artifacts.outputs.display-version }}
3031
tag-name: ${{ steps.bundle-artifacts.outputs.tag-name }}

.github/workflows/updpkgsums.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ env:
2424

2525
jobs:
2626
updpkgsums:
27+
if: github.event.repository.owner.login == 'git-for-windows'
2728
runs-on: windows-latest
2829
steps:
2930
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)