I'm working on some pants GHA stuff. The action in...
# general
p
I'm working on some pants GHA stuff. The action in this PR handles restoring the pants cache files from the GHA cache. Would anyone else be interested in an action like this? Maybe it could be extended to (a) switch between GHA file cache and remote cache, and (b) make using
pants.ci.toml
optional or configurable. https://github.com/StackStorm/st2/pull/5727
b
Publishing a GHA that others can use would be absolutely amazing. It's not hard to make them configurable either
p
What if we published it under the pantsbuild org and then used it in the example-python repo?
b
I'm all for it
c
+1
p
Needs a readme. And then maybe we can transfer it to the pantsbuild org
Could someone approve running CI for me? https://github.com/pantsbuild/example-python/pull/106
e
Done.
👍 1
p
Ok I wrapped up the action, and made some changes based on the workflow in the example-python workflow. You can see how to use the action on this PR. https://github.com/pantsbuild/example-python/pull/106 I ended up testing in my fork, so you can see a successful run with this action here: https://github.com/cognifloyd/example-python/runs/8296177323?check_suite_focus=true#step:3:1 Check out both steps: • Run st2sandbox/init-pants-action@main • Post Run st2sandbox/init-pants-action@main
So what's the next step to get this repo transferred to the pantsbuild org?
e
We already have an actions repo so how about just propose a PR there.
p
Oh sweet. I didn't see that
Looking...
h
cc @ancient-vegetable-10556, how does this intersect with your work on an init script?
a
I’m not sure it does, but I’d need to spend some real time looking at it to be sure
not worth waiting on me
p
🥳 @happy-kitchen-89482 merged my new pants-init action in https://github.com/pantsbuild/actions/pull/3 Thanks! RFR https://github.com/pantsbuild/example-python/pull/106 This makes the example use the new action.
🎉 2