Skip to content

Commit fbea75a

Browse files
authored
only run release actions on upstream-repo (#568)
fixes #566 Signed-off-by: Sebastian Gumprich <[email protected]> Signed-off-by: Sebastian Gumprich <[email protected]>
1 parent 40913a3 commit fbea75a

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

.github/workflows/enforce-labels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on: # yamllint disable-line rule:truthy
66
types: [labeled, unlabeled, opened, edited, synchronize]
77
jobs:
88
enforce-label:
9+
if: github.repository == 'dev-sec/ansible-collection-hardening'
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/labeler@main

.github/workflows/galaxy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on: # yamllint disable-line rule:truthy
88

99
jobs:
1010
deploy:
11+
if: github.repository == 'dev-sec/ansible-collection-hardening'
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v3

.github/workflows/prettier-md.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on: # yamllint disable-line rule:truthy
99

1010
jobs:
1111
prettier-md:
12+
if: github.repository == 'dev-sec/ansible-collection-hardening'
1213
runs-on: ubuntu-latest
1314
timeout-minutes: 1
1415

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ on: # yamllint disable-line rule:truthy
99

1010
jobs:
1111
generate_changelog:
12-
runs-on: ubuntu-latest
1312
name: create release draft
13+
if: github.repository == 'dev-sec/ansible-collection-hardening'
14+
runs-on: ubuntu-latest
1415
steps:
1516
- uses: actions/checkout@v3
1617
with:

0 commit comments

Comments
 (0)