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

Replace an unmaintained action #781

Merged

Conversation

JohnTitor
Copy link
Contributor

@JohnTitor JohnTitor commented May 12, 2022

The example release is here: https://github.com/2k36/krew/releases/tag/v0.100.2-rc.2
Note that the release body isn't rendered as Markdown since the latest release, opened #780 to track it. Fixed!
This just replaces action with a new one, so nothing functional should have changed.
Fixes #776
Fixes #780

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 12, 2022
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 12, 2022
@JohnTitor
Copy link
Contributor Author

Added a solution for #780, though CI failure should be unrelated.

@JohnTitor
Copy link
Contributor Author

@ahmetb Rebased, now ready to review!

Comment on lines +69 to +71
echo 'RELEASE_NOTES<<EOF' >> $GITHUB_ENV
TAG=$GITHUB_REF_NAME hack/make-release-notes.sh >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
Copy link
Member

Choose a reason for hiding this comment

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

thanks, do you mind explaining how this works. having trouble following along how we connect $GITHUB_ENV to ${{ env.RELEASE_NOTES }} below.

Copy link
Contributor Author

@JohnTitor JohnTitor Jun 7, 2022

Choose a reason for hiding this comment

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

See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable.
TL;DR we can set an env var by that way (we have to pass the release notes content to create_release).

if: contains(github.ref, 'tags')
uses: svenstaro/upload-release-action@v2
id: create_release
uses: softprops/action-gh-release@v1
with:
Copy link
Member

Choose a reason for hiding this comment

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

can we also add fail_on_unmatched_files: true (if not already set by default) as a safeguard?

@ahmetb
Copy link
Member

ahmetb commented Jun 8, 2022

/lgtm
/approve
Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 8, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahmetb, JohnTitor

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 8, 2022
@k8s-ci-robot k8s-ci-robot merged commit ce5fa5c into kubernetes-sigs:master Jun 8, 2022
@JohnTitor JohnTitor deleted the replace-release-action branch June 8, 2022 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
3 participants