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:
nodiscc
2023-08-19 11:09:23 +00:00
committed by GitHub
parent b3dce68efa
commit 3982f18161
3 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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