From a7040fa2f6e68a06af60217a4de728a217572576 Mon Sep 17 00:00:00 2001 From: Ivan Ogasawara Date: Thu, 21 Dec 2023 21:44:50 -0400 Subject: [PATCH] ci: Fix ci job check-branch --- .github/workflows/main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index addfb18..d8ad0be 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -13,10 +13,12 @@ jobs: steps: - uses: actions/checkout@v3 + if: ${{ github.event_name == 'pull_request' }} with: fetch-depth: 0 - name: Check if the PR's branch is updated + if: ${{ github.event_name == 'pull_request' }} uses: osl-incubator/gh-check-pr-is-updated@1.0.0 with: remote_branch: origin/main