Skip to content

Commit

Permalink
GH action skip shellcheck job on event release that can't run
Browse files Browse the repository at this point in the history
  • Loading branch information
vicenteherrera committed Oct 30, 2020
1 parent 27cb62d commit 49a79fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
jobs:
check_bash_installer:
name: Bash shell lint check
if: github.event_name != 'release'
# This action fails for release event because it can't find the commit SHA
runs-on: ubuntu-16.04
steps:
- name: Checkout repo
Expand Down Expand Up @@ -195,7 +197,8 @@ jobs:
publish_images:
name: Publish container images to registries
needs: [sysdig_image_scan_forwarder, sysdig_image_scan_installer]
needs: [sysdig_image_scan_forwarder]
# We do not depend on scan of installer as check_shell can't run on release, so we skip those jobs
runs-on: ubuntu-16.04
if: github.event_name == 'release'
steps:
Expand Down

0 comments on commit 49a79fa

Please sign in to comment.