-
Notifications
You must be signed in to change notification settings - Fork 10
Deprecate reusable workflows #67
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
Conversation
Some of this information should be reintroduced as example workflows
|
What about just making a new workflow that incorporates the version in its name? I use these workflows in pretty much all my mods and removing them would be a huge pain. |
|
What do you mean “incorporates the version in its name” the workflows themselves can be pinned, but the actions within them always use @main |
|
|
From now on, release with `just release {{args}}` with the usual yaclog version args like `--patch` or `--minor`. It will automatically run `yaclog release` alongside updating all reusable workflows to have the correct tags. Pinning workflows to a branch (or leaving them unpinned) should be avoided from here on, only pin to tags.
The pin updating can be done on its own with `just pin-workflows {{ref}}`
Makes #67 unnecessary
commit 82828e9
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:49:32 2025 -0700
Add note to the docs
commit f70929c
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:41:19 2025 -0700
Only run checks for tag events
commit 108d8b8
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:39:05 2025 -0700
Check for mismatches
this CI run should fail, I'll later restrict this check to only on tag pushes
commit bf2a436
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:37:59 2025 -0700
Fix regex
commit adb4c77
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:35:22 2025 -0700
Fix line endings
commit 0c99c7f
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:21:15 2025 -0700
run yaclog via uv
this allows us to pin the version
commit 814ba63
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:14:56 2025 -0700
Add tool to pin workflows while releasing a new version
From now on, release with `just release {{args}}` with the usual yaclog version args like `--patch` or `--minor`. It will automatically run `yaclog release` alongside updating all reusable workflows to have the correct tags. Pinning workflows to a branch (or leaving them unpinned) should be avoided from here on, only pin to tags.
The pin updating can be done on its own with `just pin-workflows {{ref}}`
Makes #67 unnecessary
commit 82828e9
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:49:32 2025 -0700
Add note to the docs
commit f70929c
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:41:19 2025 -0700
Only run checks for tag events
commit 108d8b8
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:39:05 2025 -0700
Check for mismatches
this CI run should fail, I'll later restrict this check to only on tag pushes
commit bf2a436
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:37:59 2025 -0700
Fix regex
commit adb4c77
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:35:22 2025 -0700
Fix line endings
commit 0c99c7f
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:21:15 2025 -0700
run yaclog via uv
this allows us to pin the version
commit 814ba63
Author: Andrew Cassidy <drewcassidy@me.com>
Date: Tue Oct 28 17:14:56 2025 -0700
Add tool to pin workflows while releasing a new version
(cherry picked from commit 09427ed)
If approved, reusable workflows would start printing a deprecation warning in the next version. Due to limitations of Github Actions, there's no way to pin a workflow's version and have that transitively pin the inner actions. So calling a workflow at 0.0.4 is still using actions from main. Alternatively the workflows would have to be manually updated with every update to use the current ref
I will also push a new commit for the last few tags that pins the actions those workflows use, so future action changes don't break anyone using past versions of the workflow