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

github actions for kotsadm #572

Merged
merged 1 commit into from
May 21, 2020
Merged

github actions for kotsadm #572

merged 1 commit into from
May 21, 2020

Conversation

divolgin
Copy link
Member

No description provided.

path: ./kotsadm/bin

- name: Download web artifact
if: ${{ steps.get_tag.outputs.GIT_TAG != '' }}
Copy link
Member

Choose a reason for hiding this comment

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

is there a way to put the 'if' a level higher?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, because github has no global level tag variable. it has to be generated as a step inside each job

Copy link
Member Author

Choose a reason for hiding this comment

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

job level condition can be controlled with on.push.tags, but that applies to the entire workflow and then we'd have to have separate workflows for tagged and untagged steps, and there would be a lot of duplication.

Copy link
Member

@laverya laverya left a comment

Choose a reason for hiding this comment

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

lgtm, but I'd prefer to put the 'if' steps at the job level, not step level when possible

@divolgin divolgin merged commit 234fbf6 into master May 21, 2020
@divolgin divolgin deleted the divolgin/builds branch May 21, 2020 22:57
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.

None yet

2 participants