Closed Holger-Will closed 4 years ago
ok, so my fix with creating a new branch did not work either because we are trying and only run init on master branch :-(
Will have a look at that again :)
Debugging report
test-element
. init
action ran for me BUT there was an error where the CLI wasn't found so it didn't got renamed.init
action did not run.init
ran successfully and renamed everythingFor some reason it seems that init
doesn't run sometimes but I'm not sure why... We should watch this closely and see if it happens again
I'm adding the help wanted
label just to highlight this and remind us to check if init
runs when we try to create new elements
I did multiple extra test (creating test-element
repetitively) and for now I did not encounter this bug again...
I maybe have an hint on the triggering event for that bug.
It happened to me again recently when I did the following:
element
(or in my case, it was a lambda
from kaskadi-template-lambda
)Manage topics
to add a new topic for the repositoryThis seemed to prevent the init
action from executing as it didn't get started. But when I deleted the repository and recreated it without doing anything on it then init
ran properly.
So I am suspecting that taking any kind of actions on the repository upon creation is somehow preventing the initial actions to run. Temporary fix (let's see if it works): when creating a new repo based off of template, do not do anything for like 2 mins or so with this repo to let the time for GitHub Actions to trigger properly. If this is the confirmed reason for the bug it may be worth bring that up to the GitHub team as this doesn't seem like a really robust behavior to me...
Issue fixed. Two things:
create
to push
init
. If not, then we run init
This makes the init
workflow run faster (starts almost instantly) and it doesn't skip so far (I tried around 10 times or so).
Closing for now.
when I just created the
kaskadi-icon
repo from this template, the init.yml action did not run. to force run it I had to create a new branch. We should at least document that this can happen and how to fix it when it happens...as it did run previously I think github changed the behavior for the
create
event...