Skip to content

Commit a875807

Browse files
authored
[skip changelog] Disable scheduled workflows that would always fail from running in forks (arduino#888)
* Disable workflows that would always fail from running in forks These workflows use resources that are only available when run in the arduino/arduino-cli repository, so would always fail when they run in a repository. They are of no value to fork repositories. They are triggered by the schedule event, so they cause regular annoying and confusing workflow failure notifications for every fork owner. * Don't trigger link validation CI workflow on schedule event when in a fork
1 parent b2bd0de commit a875807

6 files changed

+17
-0
lines changed

.github/workflows/arduino-stats.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
jobs:
99
push-stats:
10+
# This workflow is only of value to the arduino/arduino-cli repository and
11+
# would always fail in forks
12+
if: github.repository == 'arduino/arduino-cli'
1013
runs-on: ubuntu-latest
1114

1215
steps:

.github/workflows/github-stats.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
jobs:
99
push-stats:
10+
# This workflow is only of value to the arduino/arduino-cli repository and
11+
# would always fail in forks
12+
if: github.repository == 'arduino/arduino-cli'
1013
runs-on: ubuntu-latest
1114

1215
steps:

.github/workflows/i18n-nightly-push.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
jobs:
99
push-to-transifex:
10+
# This workflow is only of value to the arduino/arduino-cli repository and
11+
# would always fail in forks
12+
if: github.repository == 'arduino/arduino-cli'
1013
runs-on: ubuntu-latest
1114
steps:
1215
- name: Checkout

.github/workflows/i18n-weekly-pull.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
jobs:
99
pull-from-transifex:
10+
# This workflow is only of value to the arduino/arduino-cli repository and
11+
# would always fail in forks
12+
if: github.repository == 'arduino/arduino-cli'
1013
runs-on: ubuntu-latest
1114
steps:
1215
- name: Checkout

.github/workflows/link-validation.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88

99
jobs:
1010
verify-links:
11+
# Don't trigger on schedule event when in a fork
12+
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'arduino/arduino-cli')
1113
runs-on: ubuntu-latest
1214
steps:
1315
- uses: actions/checkout@v2

.github/workflows/nightly.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
jobs:
99
create-nightly-artifacts:
10+
# This workflow is only of value to the arduino/arduino-cli repository and
11+
# would always fail in forks
12+
if: github.repository == 'arduino/arduino-cli'
1013
runs-on: ubuntu-latest
1114

1215
container:

0 commit comments

Comments
 (0)