Skip to content

Commit 15d62e4

Browse files
Merge pull request #919 from metal3-cherrypick-bot/cherry-pick-918-to-release-1.3
🌱 Disable scheduled workflows from running in forks
2 parents b79c491 + 0c359df commit 15d62e4

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/kubesec.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
jobs:
99
setup:
10+
# This workflow is only of value to the metal3-io/cluster-api-provider-metal3 repository and
11+
# would always fail in forks
12+
if: github.repository == 'metal3-io/cluster-api-provider-metal3'
1013
runs-on: ubuntu-20.04
1114
permissions:
1215
actions: read

.github/workflows/lint-docs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
markdown-link-check:
1111
name: Broken Links
12+
# This workflow is only of value to the metal3-io/cluster-api-provider-metal3 repository and
13+
# would always fail in forks
14+
if: github.repository == 'metal3-io/cluster-api-provider-metal3'
1215
runs-on: ubuntu-latest
1316
steps:
1417
- uses: actions/checkout@v3

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ name: release
99
jobs:
1010
build:
1111
name: tag release
12+
# This workflow is only of value to the metal3-io/cluster-api-provider-metal3 repository and
13+
# would always fail in forks
14+
if: github.repository == 'metal3-io/cluster-api-provider-metal3'
1215
runs-on: ubuntu-latest
1316
steps:
1417
- name: Export RELEASE_TAG var

0 commit comments

Comments
 (0)