Skip to content

Commit c4110ab

Browse files
authored
ci: Add gh-check-pr-is-updated to the CI workflow (#160)
1 parent 9a4a451 commit c4110ab

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/main.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,25 @@ on:
88
branches: [ main ]
99

1010
jobs:
11+
check-branch:
12+
if: ${{ github.event_name == 'pull_request' }}
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
concurrency:
16+
group: check-pr-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Check if the PR's branch is updated
25+
uses: osl-incubator/[email protected]
26+
with:
27+
remote_branch: origin/main
28+
pr_sha: ${{ github.event.pull_request.head.sha }}
29+
1130
build:
1231
runs-on: ubuntu-latest
1332
concurrency:

0 commit comments

Comments
 (0)