Open giohappy opened 7 months ago
What branch/tag is triggering the workflow? i.e. what is the content of {{ github.ref }}
?
The logs imply that it is a branch named 2.24.2.
If its refs/heads/2.24.2
, you should instead have it as refs/tags/2.25.0
github.ref
is going to be the fully formed ref that caused the workflow to run. If you want this to then checkout a tag, it would have to be a workflow run that triggered off a tag (such as pushing to that tag). Assuming the repository with the workflow has the same tag as geoserver/geoserver
then this should be work by pushing 2.24.2
tag to the other repository. Based on the logs you provided, it looks like instead the other repository has a branch named 2.24.2
that caused the workflow to trigger. Is that the case?
You can consider using github.ref_name
instead if you want to trigger off changes to a branch name that matches tags in geoserver/geoserver
. actions/checkout
should try both refs/heads
and refs/tags
:
In my action, I need to checkout an external repository. It works well if I checkout branches, but it fails with tags.
This is the configuration, which references this tag :
and this is the error:
Notice that even if I use
fetch-depth > 1
the error still happens