From 4928a94e4df7f4ae676b370bcbe90941043666da Mon Sep 17 00:00:00 2001 From: HenryNguyen5 <6404866+HenryNguyen5@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:46:20 -0700 Subject: [PATCH] Run on pull request events, skip on merge groups --- .github/workflows/validate.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index d8db9d7..0ebdcb0 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -2,11 +2,14 @@ name: Validate Go Mod Files on: pull_request: + merge_group: jobs: go-mod-validation: name: Validate go.mod dependencies runs-on: ubuntu-latest + # Skip on merge group events + if: ${{ github.event_name == 'pull_request' }} steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - name: Validate go.mod