Skip to content

Commit cceb4bd

Browse files
authored
Limit the run of draftversion-check to the relevant branches (ARM-software#333)
The draftversion checker must run only in the main branch. This patch limits the run conditions to abide by this.
1 parent 42e7e86 commit cceb4bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ jobs:
3535

3636
draftversion-check:
3737
runs-on: ubuntu-latest
38+
if: github.base_ref == 'main' || github.ref == 'refs/heads/main'
3839
steps:
3940
- uses: actions/checkout@v4
4041
with:
4142
fetch-depth: 0
42-
- name: check correctness of draftversion fields
43+
- name: Check correctness of draftversion fields
4344
run: python ./tools/acle_draftversion_value_check.py .

0 commit comments

Comments
 (0)