Only run periodic GitHub Actions in main repository (#19779)

This commit is contained in:
David Beitey 2021-10-27 00:14:41 +10:00 committed by GitHub
parent 72cfa54128
commit dc5810daf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v3
if: ${{ github.repository_owner == 'home-assistant' }}
with:
github-token: ${{ github.token }}
issue-inactive-days: "30"

View File

@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
if: ${{ github.repository_owner == 'home-assistant' }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 60