From e1d80804b9d52f4ae387bf7b0cc7ad2c8ad370df Mon Sep 17 00:00:00 2001 From: Ethan Dye Date: Sat, 22 Jun 2024 13:35:44 -0600 Subject: [PATCH] Only run workflows once on pull request Signed-off-by: Ethan Dye --- .github/workflows/shellcheck-action.yml | 2 +- .github/workflows/test-action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/shellcheck-action.yml b/.github/workflows/shellcheck-action.yml index 4058fba..6956365 100644 --- a/.github/workflows/shellcheck-action.yml +++ b/.github/workflows/shellcheck-action.yml @@ -16,7 +16,7 @@ on: jobs: shellcheck: runs-on: ubuntu-latest - + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 04b67fa..c8b4581 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -18,7 +18,7 @@ on: jobs: test: runs-on: ubuntu-latest - + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - name: Checkout repository uses: actions/checkout@v4