-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
ci(releases): fetch tools versions in its own job #547
Conversation
Thanks for working this! |
https://github.com/tamasfe/taplo/releases/tag/release-taplo-cli-0.9.1 @nikaro It seems tags are not released automatically anymore? |
|
@JounQin the changes i did in this PR was to fix this issue specifically. But if you run the workflow with a tag prior to the PR i think that it still use the previous buggy version of the workflow. You may need create a new one or override the existing one to point to more recent commit (on or after the workflow fix). |
@nikaro So the release must be manual triggered now? |
No, the trigger is still on tags pushes: on:
push:
tags:
- release-* |
https://github.com/tamasfe/taplo/tags @nikaro They're not released automatically. (created 3 days ago) |
Ok, i think i understand what's hapenning. The But since @JounQin is the author here, it looks like the GitHub Personal Access Token of @tamasfe (in At least that's the only explanation i can think of. Because the Release workflow trigger didn't changed on this part it shouldn't behave differently than before. And i can (sort of) reproduce it:
Did you try to run the workflow manually targeting the tags? In the meantime this could at least let us know if the Release workflow itself is working fine now. |
Or maybe the |
I don't have the permission to check the Organization is much flexible for permission model. |
Ah ok :D that solves it then. I think it's better if @tamasfe does the releases then, although we can still prepare them to minimize work. |
Fixes: #542
In #496 i introduced a bug in the release process by referencing a not yet defined environment variable
env.RELEASE_VERSION
in the matrix.Causing this failure: https://github.com/tamasfe/taplo/actions/runs/7742605055/workflow#L268
This can be fixed by extracting the version fetching steps in its own
get_version
job and make jobs that require it to depend on it. Then instead of referencing an environment variable we use theget_version
job outputs.I also added the
workflow_dispatch
trigger to allow running the release workflow manually. So that it should be possible to re-run it to fix the releases, using the desired tag as the git ref:I've created a dummy repository to test the workflow logic (by fetching and echoing the versions) and it works fine: https://github.com/nikaro/github-actions-testing/actions/workflows/releases-taplo.yaml
release-taplo-cli-*
tags: https://github.com/nikaro/github-actions-testing/actions/runs/7783089054