Skip to content

Commit

Permalink
add step to check if the branch is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed May 7, 2024
1 parent 84394ac commit c3e8f60
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
remote_branch: origin/main
pr_sha: ${{ github.event.pull_request.head.sha }}

main:
runs-on: ubuntu-latest
timeout-minutes: 55
defaults:
Expand Down

0 comments on commit c3e8f60

Please sign in to comment.