Skip to content

Commit ab97601

Browse files
Add a Repo check to all Workflows (#4339)
1 parent abb5b6d commit ab97601

15 files changed

+18
-4
lines changed

.github/workflows/auto-update-app-headers.yml

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

1111
jobs:
1212
update-app-files:
13+
if: github.repository == 'community-scripts/ProxmoxVE'
1314
runs-on: runner-cluster-htl-set
1415

1516
permissions:

.github/workflows/autolabeler.yml

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

88
jobs:
99
autolabeler:
10+
if: github.repository == 'community-scripts/ProxmoxVE'
1011
runs-on: runner-cluster-htl-set
1112
permissions:
1213
pull-requests: write

.github/workflows/changelog-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
update-changelog-pull-request:
10+
if: github.repository == 'community-scripts/ProxmoxVE'
1011
runs-on: runner-cluster-htl-set
1112
env:
1213
CONFIG_PATH: .github/changelog-pr-config.json
@@ -271,4 +272,4 @@ jobs:
271272
PR_NUMBER=$(gh pr list --head "${BRANCH_NAME}" --json number --jq '.[].number')
272273
if [ -n "$PR_NUMBER" ]; then
273274
gh pr review $PR_NUMBER --approve
274-
fi
275+
fi

.github/workflows/close-discussion.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111

1212
jobs:
1313
close-discussion:
14+
if: github.repository == 'community-scripts/ProxmoxVE'
1415
runs-on: runner-cluster-htl-set
1516

1617
steps:

.github/workflows/close-ttek-issues.yaml

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

66
jobs:
77
close_tteck_issues:
8+
if: github.repository == 'community-scripts/ProxmoxVE'
89
runs-on: ubuntu-latest
910
steps:
1011
- name: Auto-close if tteck script detected

.github/workflows/close_issue_in_dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- closed
66
jobs:
77
close_issue:
8-
if: github.event.pull_request.merged == true
8+
if: github.event.pull_request.merged == true && github.repository == 'community-scripts/ProxmoxVE'
99
runs-on: ubuntu-latest
1010

1111
steps:

.github/workflows/crawl-versions.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions:
1212

1313
jobs:
1414
crawl-versions:
15+
if: github.repository == 'community-scripts/ProxmoxVE'
1516
runs-on: runner-cluster-htl-set
1617

1718
steps:

.github/workflows/create-docker-for-runner.yml

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

1212
jobs:
1313
build:
14+
if: github.repository == 'community-scripts/ProxmoxVE'
1415
runs-on: ubuntu-latest #To ensure it always builds we use the github runner with all the right tooling
1516

1617
steps:

.github/workflows/delete-json-branch.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
jobs:
1111
delete_branch:
12+
if: github.repository == 'community-scripts/ProxmoxVE'
1213
runs-on: runner-cluster-htl-set
1314
steps:
1415
- name: Checkout the code
@@ -25,4 +26,4 @@ jobs:
2526
git push origin --delete "$PR_BRANCH"
2627
else
2728
echo "Skipping deletion of the main branch"
28-
fi
29+
fi

.github/workflows/frontend-cicd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ concurrency:
2525

2626
jobs:
2727
build:
28+
if: github.repository == 'community-scripts/ProxmoxVE'
2829
runs-on: runner-cluster-htl-set
2930
defaults:
3031
run:
@@ -63,7 +64,7 @@ jobs:
6364
deploy:
6465
runs-on: ubuntu-latest
6566
needs: build
66-
if: github.ref == 'refs/heads/main'
67+
if: github.ref == 'refs/heads/main' && github.repository == 'community-scripts/ProxmoxVE'
6768
permissions:
6869
pages: write
6970
id-token: write

0 commit comments

Comments
 (0)