chore(ci): replace mbta/actions/reshim-asdf#775
Conversation
2f8b64e to
ab91b15
Compare
Replace `mbta/actions/reshim-asdf` with bash equivalent commands. In the v2.20 release, commit mbta/actions@3579cb7 marked the reshim-asdf action as deprecated. A recent Dependabot update attempted to bump this action's version to v2.21 - while the update would succeed otherwise, replace the action now while it's on top of mind. The existing job structure of the CI workflow has been maintained as-is. In the future, there is room to refactor this to either a composite action or series of parallel steps, which would eliminate the need to pass the `ASDF_DIR` and `ASDF_DATA_DIR` values between jobs. However, since this is an unplanned task created to avoid a deprecated Action, leave that for another day. `asdf-vm/actions/setup` was not used here. While the action can achieve the same effect as the new `asdf_env_setup` step, it did not seem worth it to have to manage an additional dependency for setting up something on our `PATH`. In the future, when Dependabot PRs are grouped and/or the CI workflow is refactored, this can certainly be re-explored (i.e. this is a judgment call more than anything).
ab91b15 to
f8ec30e
Compare
Mm, I don't love this, for a few reasons:
Does this sway your judgment? 😄 |
Kinda, but I'm still on the fence 😅 I'd argue that the complexity here is low as far as the bash goes. In fact, we do more-or-less the same thing on signs-ui - not that writing the same bash in more than one place is going to make anyone like it more 😆 I have a slight inclination to not using the
I had considered switching over to a composite action here and using I'll spend my "Dependabot review time" (catchier name TBD) tomorrow AM, and see what this looks like with |
In my mind these two things are not connected; we could use |
double checking that i understand what is and is not shared
Note original commit msg needs updating before merge
93493ff to
9d68a91
Compare
To be fair, I probably didn't distinguish between the two well either. I think we were both talking about That all said, I've updated this PR to use asfd's |
Asana task: N/A
Description
Replace
mbta/actions/reshim-asdfwith bash equivalent commands. Inthe v2.20 release, commit mbta/actions@3579cb7
marked the reshim-asdf action as deprecated. A recent Dependabot update
attempted to bump this action's version to v2.21 - while the update
would succeed otherwise, replace the action now while it's on top of
mind.
(Note: Since we're using tags instead of SHAs for this action, we're technically already using v2.20 (v2 still points at one minor behind as of this writing) in its deprecated state)
The existing job structure of the CI workflow has been maintained as-is.
In the future, there is room to refactor this to either a composite
action or series of parallel steps, which would eliminate the need to
pass the
ASDF_DIRandASDF_DATA_DIRvalues between jobs. However,since this is an unplanned task created to avoid a deprecated Action,
leave that for another day.
asdf-vm/actions/setupwas not used here. While the action can achievethe same effect as the new
asdf_env_setupstep, it did not seem worthit to have to manage an additional dependency for setting up something
on our
PATH. In the future, when Dependabot PRs are grouped and/or theCI workflow is refactored, this can certainly be re-explored (i.e. this
is a judgment call more than anything).