ProgrammerHumor

peakGithubActionsExperience

peakGithubActionsExperience

This shit took me 32 commits to get right 😭

https://i.redd.it/d39sfa9tokef1.png
Reddit

Discussion

Mewtwo2387
:js:

please use conventional commits:

ci: pls fucking work odjqoadiuwhshhwqiqlqn RRAHHH

7 hours ago
ATE47
:powershell::cp::j:

It won't work till you stop using words, usually dqfegwhro2 is the right commit, but the main fix was in hbjyrgrehzd

7 hours ago
Fleaaa

You can try locally with https://github.com/nektos/act but it just reduces the number of trial and error from my experience.. something is inherently and badly designed with GA

6 hours ago
Osmium_tetraoxide

This is what makes using GitHub actions decent, throw in linting your GitHub action files and read the damn docs.

5 hours ago
Fleaaa

Linting is the least issue of it, most of failure comes from inter platform aspect which is impossible to debug unless you start to build it

Act reduces this a bit but you gotta slap a bullet proof environment setup to make it work

5 hours ago
CalliNerissaFanBoy02

I had the same thing. I hate it.

I questioned my life and if CI/CD was a Good idea.

Tbf: I vibe CI/CD-ed

8 hours ago
Kingblackbanana

as soon as it works it will be the best idea ever unti it stops again

8 hours ago
Frinckles

lmao the existential crisis is real. but once it clicks, it clicks

6 hours ago
billyowo
:ts::js:

did god forbid you from using nektos/act

9 hours ago
YboMa2 OP

I’m ngl, u just saved a life by putting me on ts, thanks 👍

8 hours ago
WhatTheTea
:cs::cp:

I had similar experience because I didn't know about 'act back then :P

On other hand, local runner configuration for windows pipelines with secrets sounds somewhat scary. Sometimes it's easier to throw actions at the wall))

8 hours ago
iHiep

I had the same experience when asking AI to build workflows for my repo :))))

8 hours ago
exoclipse
:powershell::j::vb:

what did we learn

8 hours ago
iHiep

Just read the docs

8 hours ago
exoclipse
:powershell::j::vb:

You learned well.

8 hours ago
JanB1

What an exchange. XD

7 hours ago
aRightQuant

At least GitLab has a built in ci linter. But no, who decided that submitting a dsl defined job to a central system was a good idea? Certainly not someone who'd worked on mainframes.

5 hours ago
DHtek

Ever heard of fixup commits and rebasing? There are of course many ways to do it. (Arguably) the easiest is to use fixup commits to fix these linter errors and once the CI is green, squash them with „git rebase —autosquash master“

You will need to do a force push afterwards, but you will have a perfectly nice pristine commit.

I would suggest everyone to get to know rebasing. There is a lot of cool stuff you can do.

1 hour ago
ilawon

I don't think the problem at hand is the commit history. 

20 minutes ago
donthitmeplez
:js:

man i had the same thing but on someone elses repo :sob: my man messaged me with a screenshot of like 30 failed jobs XD

6 hours ago
TheFranticDreamer
:c: :cp: :cs:

Try until it works Copy in another place manually Revert back to the first try Paste the working files back into the repo ... Profit

5 hours ago
NotSoProGamerR

if i were to mess with ci, i make sure to always amend extra changes, wouldn't want anyone to know i failed

5 hours ago
GrantSolar

The worst is trying to make changes to the action and testing it without committing the incomplete workflow changes to main

3 hours ago
spastical-mackerel

workflow_dispatch is your friend

3 hours ago
DespoticLlama

TIL what SMH means, I am so disappointed

2 hours ago
prehensilemullet

Use something like https://mxschmitt.github.io/action-tmate/ to ssh into your actions and debug them

1 hour ago
Excellent_Tie_5604

I'm glad I don't understand and use GitHub enough to identify what's the errors are and why they are happening.

I simply create my project add features and push.

bash git add . git commit -m "Message" git push

Is the only thing I use generally 😌

1 hour ago
exomyth

git commit --amend

git push -f

56 minutes ago
Tttehfjloi
:cs: :py:

WTF I WAS LITERALLY DOING THIS YESTERDAY

56 minutes ago