News for hackers. Stuff that matters.
Re:GitHub Actions could be so much better by chrissoundz on Friday September 22, 2023 @01:08PM (#37614632)
Struggling with this today, and numerous other days. It's so bad. Stop trying to build an operating system out of YAML. I'll always use and recommend Gitlab from now on.

And what the earth is an "actions" anyway? How on earth is simple bash functions not just as suitable here? Instead you have some weird YAML scripting language. It's so bad. Why. Somebody please tell me. I'm losing my mind. It is a good reflection of the rest of the world though and why the worlds infrastructure is crumbling in many places.

Re:GitHub Actions could be so much better by giobox on Friday September 22, 2023 @01:19PM (#37614774)
Executing bash statements/scripts/functions is the thing I struggle least with in GH actions personally, it's remarkably easy to execute shell steps. If you really want your entire build to be a shellscript the action executes, you can do just that with very little YAML.
Re:GitHub Actions could be so much better by Aeolun on Friday September 22, 2023 @08:36PM (#37619548)
Except it doesn’t execute quite like in bash, and every single command is it’s own little island.

So exporting an environment variable doesn’t work for example.

Re:GitHub Actions could be so much better by trallnag on Saturday September 23, 2023 @01:11PM (#37625187)
What are you talking about? You can put a whole Bash script into a single step.