News for hackers. Stuff that matters.
Re:GitHub Actions could be so much better by woodruffw on Friday September 22, 2023 @12:12PM (#37613878)
This is a great perspective, and one I agree with -- many of the woes associated with GitHub Actions can be eliminated by treating it just as a task substrate, and not trying to program in YAML.

At the same time, I've found that it often isn't sufficient to push everything into a proper programming language: I do sometimes (even frequently) need to use vendor-specific functionality in GHA, mark dependencies between jobs, invoke REST APIs that are already well abstracted as actions, etc. Re-implementing those things in a programming language of my choice is possible, but doesn't break the vendor dependency and is (IME) still brittle.

Essentially: the vendor lock-in value proposition for GHA is very, very strong. Convincing people that they should take option (2) means making a stronger value proposition, which is pretty hard!

Re:GitHub Actions could be so much better by MoreQARespect on Friday September 22, 2023 @12:43PM (#37614271)
No, you're right it's not necessarily a good idea to be anal about this rule. E.g. If an action is simple to use and already built I use it - I won't necessarily try to reimplement e.g. upload artifacts step in code.

Another thing I noticed is that if you do 1 sophisticated features like build caching and parallelization often becomes completely impractical whereas if you default to 2 you can probably do it with only a moderate amount of commit-push-debug.

Re:GitHub Actions could be so much better by flohofwoe on Saturday September 23, 2023 @04:05AM (#37621479)
I use yaml and gh actions to prepare the environment, define jobs and their dependencies and for git operations, everything else goes into scripts.