Only run CI Actions in forks

This commit is contained in:
monosans
2024-03-18 11:10:52 +03:00
parent 501daec384
commit abbb7b3b75
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ concurrency:
jobs:
auto-merge-dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
if: ${{ github.repository_owner == 'monosans' && github.actor == 'dependabot[bot]' }}
steps:
- id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
@@ -19,7 +19,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
auto-merge-updates:
runs-on: ubuntu-latest
if: ${{ github.actor_id == '158570872' }}
if: ${{ github.repository_owner == 'monosans' && github.actor_id == '158570872' }}
steps:
- run: gh pr merge --auto --delete-branch --squash "${PR_URL}"
env:
@@ -9,6 +9,7 @@ concurrency:
jobs:
update-dependencies:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'monosans' }}
strategy:
matrix:
include: