]> git.ipfire.org Git - people/ms/gcc.git/commitdiff
ci: Do not run `check-gccrs-prefix` on PRs to master
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 15 Mar 2023 16:51:17 +0000 (17:51 +0100)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 20 Mar 2023 14:06:22 +0000 (14:06 +0000)
ChangeLog:

* .github/workflows/commit-format.yml: Skip job on PRs to master.

.github/workflows/commit-format.yml

index 6ccb99bacb0399383fb857322940221afce051c1..10cb5a0d4459ca8a35f3b63ef1509315d4db2cda 100644 (file)
@@ -34,10 +34,10 @@ jobs:
   check-commit-prefixes:
     runs-on: ubuntu-latest
     name: check-gccrs-prefix
+    if: ${{ github.base_ref == 'gcc-patch-dev' }} # master commits don't need the gccrs prefix
     
     steps:
       - uses: actions/checkout@v3
-        if: ${{ github.base_ref == 'gcc-patch-dev' }} # master commits don't need the gccrs prefix
         with:
           ref: ${{ github.event.pull_request.head.sha }}
           fetch-depth: 0