]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
ci: run differential shellcheck on push as well
authorFrantisek Sumsal <fsumsal@redhat.com>
Tue, 28 Mar 2023 13:08:33 +0000 (15:08 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 28 Mar 2023 13:15:33 +0000 (15:15 +0200)
to get rid of the annoying message on new PRs.

Also, update the action to the latest version and drop now unnecessary
permissions.

See: https://github.com/redhat-plumbers-in-action/differential-shellcheck/issues/215
Addresses: https://github.com/systemd/mkosi/pull/1413#issuecomment-1486700752

.github/workflows/differential-shellcheck.yml

index 7e699a69848641340c74909f098c2b1db49cea4b..84dcf5355fe151bb7904ad466514f0254c3262ec 100644 (file)
@@ -3,6 +3,9 @@
 
 name: Differential ShellCheck
 on:
+  push:
+    branches:
+      - main
   pull_request:
     branches:
       - main
@@ -16,7 +19,6 @@ jobs:
 
     permissions:
       security-events: write
-      pull-requests: write
 
     steps:
       - name: Repository checkout
@@ -25,6 +27,6 @@ jobs:
           fetch-depth: 0
 
       - name: Differential ShellCheck
-        uses: redhat-plumbers-in-action/differential-shellcheck@v2
+        uses: redhat-plumbers-in-action/differential-shellcheck@v4
         with:
           token: ${{ secrets.GITHUB_TOKEN }}