From 62e2b2c7bd565d0d89d2e408c66871c843e328e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 3 Jan 2025 22:53:41 +0100 Subject: [PATCH 1/2] Skip Repo Automator on forks --- .github/workflows/repo-automator.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/repo-automator.yml b/.github/workflows/repo-automator.yml index 93ddaf647..c23f79e82 100644 --- a/.github/workflows/repo-automator.yml +++ b/.github/workflows/repo-automator.yml @@ -19,6 +19,7 @@ on: jobs: Validate: runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork }} steps: - uses: 10up/action-repo-automator@trunk From 1cd59ffa21f5c5e1eecbdeee1a4a75745a5da465 Mon Sep 17 00:00:00 2001 From: Dharmesh Patel Date: Fri, 10 Jan 2025 18:05:53 +0530 Subject: [PATCH 2/2] Allow run workflow for the push and issues events. --- .github/workflows/repo-automator.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/repo-automator.yml b/.github/workflows/repo-automator.yml index c23f79e82..8a8359bf6 100644 --- a/.github/workflows/repo-automator.yml +++ b/.github/workflows/repo-automator.yml @@ -19,7 +19,7 @@ on: jobs: Validate: runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork }} + if: "${{ github.event_name == 'push' || github.event_name == 'issues' || ( github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork ) }}" steps: - uses: 10up/action-repo-automator@trunk