Chore: dont run repo maintenance in forks

This commit is contained in:
shamoon 2024-10-13 08:42:28 -07:00
parent dfcecb3a5c
commit 8e61a29137

View File

@ -16,6 +16,7 @@ concurrency:
jobs:
stale:
name: 'Stale'
if: github.repository_owner == 'paperless-ngx'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
@ -31,6 +32,7 @@ jobs:
for your contributions. See our [contributing guidelines](https://github.com/paperless-ngx/paperless-ngx/blob/dev/CONTRIBUTING.md#automatic-repository-maintenance) for more details.
lock-threads:
name: 'Lock Old Threads'
if: github.repository_owner == 'paperless-ngx'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
@ -56,6 +58,7 @@ jobs:
See our [contributing guidelines](https://github.com/paperless-ngx/paperless-ngx/blob/dev/CONTRIBUTING.md#automatic-repository-maintenance) for more details.
close-answered-discussions:
name: 'Close Answered Discussions'
if: github.repository_owner == 'paperless-ngx'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
@ -112,6 +115,7 @@ jobs:
}
close-outdated-discussions:
name: 'Close Outdated Discussions'
if: github.repository_owner == 'paperless-ngx'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
@ -203,6 +207,7 @@ jobs:
}
close-unsupported-feature-requests:
name: 'Close Unsupported Feature Requests'
if: github.repository_owner == 'paperless-ngx'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7