mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
tools/github actions: do not run scheduled jobs on forks of the original repository (#62)
- fixes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/60
This commit is contained in:
parent
b3dce68efa
commit
3982f18161
3 changed files with 4 additions and 0 deletions
1
.github/workflows/check-dead-links.yml
vendored
1
.github/workflows/check-dead-links.yml
vendored
|
|
@ -14,6 +14,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
check-dead-links:
|
||||
if: github.repository == 'awesome-selfhosted/awesome-selfhosted-data'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
check-unmaintained-projects:
|
||||
if: github.repository == 'awesome-selfhosted/awesome-selfhosted-data'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
|
|||
2
.github/workflows/daily-update-metadata.yml
vendored
2
.github/workflows/daily-update-metadata.yml
vendored
|
|
@ -14,6 +14,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
update-metadata:
|
||||
if: github.repository == 'awesome-selfhosted/awesome-selfhosted-data'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
@ -27,6 +28,7 @@ jobs:
|
|||
git diff-index --quiet HEAD || git commit -m "[bot] update projects metadata"
|
||||
git push
|
||||
build:
|
||||
if: github.repository == 'awesome-selfhosted/awesome-selfhosted-data'
|
||||
needs: update-metadata
|
||||
uses: ./.github/workflows/build.yml
|
||||
secrets: inherit
|
||||
|
|
|
|||
Loading…
Reference in a new issue