Unverified Commit a875807c authored by per1234's avatar per1234 Committed by GitHub

[skip changelog] Disable scheduled workflows that would always fail from running in forks (#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
parent b2bd0de2
...@@ -7,6 +7,9 @@ on: ...@@ -7,6 +7,9 @@ on:
jobs: jobs:
push-stats: push-stats:
# This workflow is only of value to the arduino/arduino-cli repository and
# would always fail in forks
if: github.repository == 'arduino/arduino-cli'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
......
...@@ -7,6 +7,9 @@ on: ...@@ -7,6 +7,9 @@ on:
jobs: jobs:
push-stats: push-stats:
# This workflow is only of value to the arduino/arduino-cli repository and
# would always fail in forks
if: github.repository == 'arduino/arduino-cli'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
......
...@@ -7,6 +7,9 @@ on: ...@@ -7,6 +7,9 @@ on:
jobs: jobs:
push-to-transifex: push-to-transifex:
# This workflow is only of value to the arduino/arduino-cli repository and
# would always fail in forks
if: github.repository == 'arduino/arduino-cli'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
......
...@@ -7,6 +7,9 @@ on: ...@@ -7,6 +7,9 @@ on:
jobs: jobs:
pull-from-transifex: pull-from-transifex:
# This workflow is only of value to the arduino/arduino-cli repository and
# would always fail in forks
if: github.repository == 'arduino/arduino-cli'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
......
...@@ -8,6 +8,8 @@ on: ...@@ -8,6 +8,8 @@ on:
jobs: jobs:
verify-links: verify-links:
# Don't trigger on schedule event when in a fork
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'arduino/arduino-cli')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
......
...@@ -7,6 +7,9 @@ on: ...@@ -7,6 +7,9 @@ on:
jobs: jobs:
create-nightly-artifacts: create-nightly-artifacts:
# This workflow is only of value to the arduino/arduino-cli repository and
# would always fail in forks
if: github.repository == 'arduino/arduino-cli'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment