systemd/SOURCES/0235-ci-trigger-differential-shellcheck-workflow-on-push.patch
2023-11-07 12:29:40 +00:00

48 lines
1.4 KiB
Diff

From e92d004898cb36db27a2ceba6647793ff9617561 Mon Sep 17 00:00:00 2001
From: Jan Macku <jamacku@redhat.com>
Date: Thu, 30 Mar 2023 17:07:51 +0200
Subject: [PATCH] ci: trigger `differential-shellcheck` workflow on push
Fixes: redhat-plumbers-in-action/differential-shellcheck#215
rhel-only
Related: #2100440
---
.github/workflows/differential-shellcheck.yml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/differential-shellcheck.yml b/.github/workflows/differential-shellcheck.yml
index 105f92d1c9..3662126304 100644
--- a/.github/workflows/differential-shellcheck.yml
+++ b/.github/workflows/differential-shellcheck.yml
@@ -3,6 +3,10 @@
name: Differential ShellCheck
on:
+ push:
+ branches:
+ - main
+ - rhel-9.*.0
pull_request:
branches:
- main
@@ -18,15 +22,14 @@ jobs:
permissions:
security-events: write
- pull-requests: write
steps:
- name: Repository checkout
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
+ uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Differential ShellCheck
- uses: redhat-plumbers-in-action/differential-shellcheck@1b1b75e42f0694c1012228513b21617a748c866e
+ uses: redhat-plumbers-in-action/differential-shellcheck@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}