Skip to content
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

Merged
merged 1 commit into from
Jan 7, 2025
Merged

disable kms for workflow builds #25

merged 1 commit into from
Jan 7, 2025

Conversation

toanju
Copy link
Contributor

@toanju toanju commented Dec 20, 2024

Cronjobs of of event type schedule and hence kms would be enabled.

@@ -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 }}
Copy link
Contributor

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 }}

Copy link
Contributor Author

@toanju toanju Dec 20, 2024

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

Copy link
Contributor

@nkraetzschmar nkraetzschmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pnpavlov pnpavlov added this to the 2024-12 milestone Dec 26, 2024
Copy link
Contributor

@NotTheEvilOne NotTheEvilOne left a 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)

@nkraetzschmar nkraetzschmar merged commit 135644d into main Jan 7, 2025
26 checks passed
@toanju toanju deleted the nightlies branch January 7, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants