Skip repo-specific CI on forks. (#13410)
This will avoid pestering users with failed workflow run messages for workflows that should not even be running in their repos.
Austin S. Hemmelgarn committed
Jul 25, 2022 at 07:10 UTC
2e14b68bc851c4dd4ebb2b1d1749c49ec5e6e3cf
3 files changed
+3
-1
.github/workflows/add-to-project.yml
+1
@@ -9,6 +9,7 @@ on:
9
jobs:
10
add-to-project:
11
name: Add issue to project
12
+ if: github.repository == 'netdata/netdata'
13
runs-on: ubuntu-latest
14
steps:
15
- name: Add issues to Agent project board
.github/workflows/cloud_regression.yml
+1
@@ -13,6 +13,7 @@ on:
13
jobs:
14
trigger_cloud_regression_tests:
15
runs-on: ubuntu-latest
16
+ if: github.repository == 'netdata/netdata'
17
steps:
18
- name: Evaluate workflow dispatch parameters
19
env:
.github/workflows/packagecloud.yml
+1
-1
@@ -10,7 +10,7 @@ jobs:
10
cleanup:
11
name: PackageCloud Cleanup
12
runs-on: ubuntu-latest
13
- if: always()
13
+ if: github.repository == 'netdata/netdata'
14
strategy:
15
fail-fast: false
16
matrix: