Skip to content

Conversation

@drewcassidy
Copy link
Member

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

@JonnyOThan
Copy link
Contributor

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.

@drewcassidy
Copy link
Member Author

What do you mean “incorporates the version in its name”

the workflows themselves can be pinned, but the actions within them always use @main

@drewcassidy
Copy link
Member Author

drewcassidy commented Oct 28, 2025

For reference, this is currently preventing me from testing something because our CI uses these same workflows, so it's using the actions in the main branch instead of in the working directory.

Anyone using workflows can still use them @0.0.4, but I don't think its viable to support them going forwardI need to stop saying things when I'm sick

drewcassidy added a commit that referenced this pull request Oct 29, 2025
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
@drewcassidy drewcassidy deleted the deprecate-workflows branch October 29, 2025 00:58
drewcassidy added a commit that referenced this pull request Nov 7, 2025
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants