-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore(ci): Fix release workflow build step checking out wrong commit #275
Conversation
b5016e7
to
dda3b4f
Compare
dda3b4f
to
8028246
Compare
Tested in https://github.com/dav-pascual/mrack/actions/runs/6417183083 Job checking out the actual latest release commit at step https://github.com/dav-pascual/mrack/actions/runs/6417183083/job/17422433550#step:3:44 Commit done: dav-pascual@c0fc82e |
I don't understand how does this fix #273. There, the issue seems to be:
I.e. the release process did not upload the archive here: https://github.com/neoave/mrack/releases/tag/v1.16.0 But how does the checkout fix it? I was looking at latest test&release run: https://github.com/neoave/mrack/actions/runs/6406506972 and that seems to fail on the fact the version was not bumped as the commit used "chore" type in commit (i think that "chore" doesn't bump version") it would need to be fix, feat or something else. The fact that the workflow runs with the version it was executed on seems good to me. Or what is the issue with it? |
@pvoborni Oops, didn't look at the packit logs and thought it was about the same issue. I'll unlink the issue. The workflow run you looked at, indeed won't upload the new version to pypi because @Tiboris already did so manually. Look at this workflow run: https://github.com/neoave/mrack/actions/runs/6241434877 |
actions/checkout checks out the latest commit at the time of the workflow trigger, hence any commit done during the workflow is not included. Fixing this to checkout the actual latest (release) commit. Signed-off-by: David Pascual <[email protected]>
8028246
to
9624e6b
Compare
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.
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.
Thanks @dav-pascual maybe in same step of building python dist packages we can use action to upload them to the release page as the files will be present at this point.
this will fix i hope the pypi upload
please note this will be affected for future releases and 1.16.0 is not proposed to fedora rpms yet.
actions/checkout checks out the latest commit at the time of the workflow trigger,
hence any commit done during the workflow is not included.
Fixing this to checkout the actual latest (release) commit.