Skip to content

Commit 49a79fa

Browse files
GH action skip shellcheck job on event release that can't run
1 parent 27cb62d commit 49a79fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ on:
1515
jobs:
1616
check_bash_installer:
1717
name: Bash shell lint check
18+
if: github.event_name != 'release'
19+
# This action fails for release event because it can't find the commit SHA
1820
runs-on: ubuntu-16.04
1921
steps:
2022
- name: Checkout repo
@@ -195,7 +197,8 @@ jobs:
195197
196198
publish_images:
197199
name: Publish container images to registries
198-
needs: [sysdig_image_scan_forwarder, sysdig_image_scan_installer]
200+
needs: [sysdig_image_scan_forwarder]
201+
# We do not depend on scan of installer as check_shell can't run on release, so we skip those jobs
199202
runs-on: ubuntu-16.04
200203
if: github.event_name == 'release'
201204
steps:

0 commit comments

Comments
 (0)