diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 9779447..28ce65e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -67,8 +67,28 @@ env: SUPERSET_DB_DATABASE: postgres jobs: - main: + check-branch: + runs-on: ubuntu-latest + + timeout-minutes: 2 + concurrency: + group: ci-check-branch-${{ github.ref }} + cancel-in-progress: true + + steps: + - uses: actions/checkout@v4 + 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 + pr_sha: ${{ github.event.pull_request.head.sha }} + main: runs-on: ubuntu-latest timeout-minutes: 55 defaults: