-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disable kms for workflow builds #25
Conversation
.github/workflows/nightly.yaml
Outdated
@@ -27,4 +27,4 @@ jobs: | |||
uses: gardenlinux/gardenlinux/.github/workflows/build.yml@main | |||
with: | |||
version: ${{ inputs.version || 'now' }} | |||
use_kms: ${{ github.event_name != 'workflow_dispatch' || inputs.use_kms }} | |||
use_kms: ${{ inputs.use_kms }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inputs.use_kms
is undefined if not executed as a workflow triggered. To get the result expected you may want to use the value ${{ github.event_name == 'workflow_dispatch' && inputs.use_kms || false }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove this completely since it does not really make sense anyhow... done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - as documented by GitHub removing input variables from the caller of a workflow is a supported case (see https://docs.github.com/en/enterprise-cloud@latest/actions/writing-workflows/workflow-syntax-for-github-actions#onworkflow_callinputs)
Cronjobs of of event type
schedule
and hence kms would be enabled.