https://kotlinlang.org logo
Title
s

SerVB

12/17/2021, 8:00 PM
Oh, so endless loops are hard to create in GH Actions: https://github.community/t/github-actions-workflow-not-triggering-with-tag-push/17053/6
🙌 1
p

Piotr Krzemiński

12/17/2021, 8:01 PM
Great design of GH Actions!
s

SerVB

12/17/2021, 8:07 PM
Well, not quite 🙂 Now I'm searching for a workaround for that 🙃 The current situation is that after the generator creates and pushes a new commit, it's better to run our checks for it. But it doesn't happen automatically because that commit was pushed by a workflow, and this doesn't invoke the "push" event, so our checking workflow isn't run 😅
p

Piotr Krzemiński

12/17/2021, 8:09 PM
Ah, I see - so in fact you don't want to create the endless loop, but run the verification workflow (automatic) once after the generation workflow (manual), right? Maybe the observation that these are two workflows will be any helpful
1
Even if it's hard or not doable within your designated time, we can go with an assumption for now: what the generating workflow generated is valid. In scope of PR this is bearable because after merging to the main branch, it should be validated right?
1
s

SerVB

12/17/2021, 8:19 PM
Just found official docs on it: https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token Let me just allow to run checks manually too, not only by pushing. It will allow to automatically check generated commits before merging at least somehow
👌 1