This shit took me 32 commits to get right 😭
It won't work till you stop using words, usually dqfegwhro2 is the right commit, but the main fix was in hbjyrgrehzd
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
This is what makes using GitHub actions decent, throw in linting your GitHub action files and read the damn docs.
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
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
as soon as it works it will be the best idea ever unti it stops again
lmao the existential crisis is real. but once it clicks, it clicks
did god forbid you from using nektos/act
I’m ngl, u just saved a life by putting me on ts, thanks 👍
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))
I had the same experience when asking AI to build workflows for my repo :))))
what did we learn
Just read the docs
You learned well.
What an exchange. XD
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.
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.
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
Try until it works Copy in another place manually Revert back to the first try Paste the working files back into the repo ... Profit
if i were to mess with ci, i make sure to always amend extra changes, wouldn't want anyone to know i failed
The worst is trying to make changes to the action and testing it without committing the incomplete workflow changes to main
workflow_dispatch
is your friend
TIL what SMH means, I am so disappointed
Use something like https://mxschmitt.github.io/action-tmate/ to ssh into your actions and debug them
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 😌
git commit --amend
git push -f
WTF I WAS LITERALLY DOING THIS YESTERDAY
please use conventional commits:
ci: pls fucking work odjqoadiuwhshhwqiqlqn RRAHHH