From b0b646a5de1fcb1d26c13aa641ed0d69d7f3da9b Mon Sep 17 00:00:00 2001 From: Ivan Ogasawara Date: Sun, 29 Sep 2024 12:59:43 -0400 Subject: [PATCH] improvel CI --- .github/workflows/main.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 4d87f4eb..b0ac4ebc 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -8,6 +8,25 @@ on: branches: [ main ] jobs: + check-branch: + if: ${{ github.event_name == 'pull_request' }} + runs-on: ubuntu-latest + timeout-minutes: 10 + concurrency: + group: check-pr-${{ github.ref }} + cancel-in-progress: true + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Check if the PR's branch is updated + uses: osl-incubator/gh-check-pr-is-updated@1.0.0 + with: + remote_branch: origin/main + pr_sha: ${{ github.event.pull_request.head.sha }} + build: runs-on: ubuntu-latest concurrency: