Skip to content

Commit

Permalink
Added runs-on option to cicd-with-script.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Dec 21, 2023
1 parent 18cb1cf commit 08c5f6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cicd-with-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
run-prettier: { type: boolean, required: false, default: true }
run-shellcheck: { type: boolean, required: false, default: true }
run-trivy: { type: boolean, required: false, default: true }
runs-on: { type: string, required: false, default: ubuntu-latest }
path: { type: string, required: false, default: "" }
args: { type: string, required: false, default: "" }
env: { type: string, required: false, default: ">/dev/null" }
Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:
path: $GITHUB_ACTION_PATH/../../scripts/cicd/generic-trivy.sh

specific:
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
if: inputs.path != ''
needs: [prettier, shellcheck, trivy]
steps:
Expand Down

0 comments on commit 08c5f6e

Please sign in to comment.