-
Notifications
You must be signed in to change notification settings - Fork 792
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
upload chart as github artifact #2086
Conversation
- runs publish workflow for push and pull request - moves credential-requiring conditions to individual steps instead of workflow as a whole - on pull request, upload as artifact instead of publishing to the chart repository This will only fully work if there are no changes to images
uses step output for central single variable since it's a derived value that we check several times
|
||
# ref: https://github.com/actions/upload-artifact | ||
- uses: actions/upload-artifact@v2 | ||
if: steps.publishing.outputs.publishing == '' |
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.
Weird possible bug in actions: cannot use simpler if: !steps.publishing.outputs.publishing
which produces a syntax error, when I'm pretty sure it should be fine.
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.
Nice LGTM!
Thank you @minrk! ❤️ |
This will only fully work if there are no changes to images in the PR, since image upload won't happen without credentials.
closes #2043