Open
Description
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 :
- uses: actions/checkout@v4
with:
repository: 'geoserver/geoserver'
ref: ${{ github.ref }}
fetch-tags: 'true'
path: 'geoserver'
and this is the error:
Run actions/checkout@v4
Syncing repository: geoserver/geoserver
Getting Git version info
Temporarily overriding HOME='/home/runner/work/_temp/acac2333-334b-4142-adb2-0c290c9f6b17' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/geoserver-geonode-ext/geoserver-geonode-ext/geoserver
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Fetching the repository
/usr/bin/git -c protocol.version=2 fetch --prune --no-recurse-submodules --depth=1 origin +refs/heads/2.24.2:refs/remotes/origin/2.24.2
Error: fatal: couldn't find remote ref refs/heads/2.24.2
The process '/usr/bin/git' failed with exit code 128
Waiting 16 seconds before trying again
/usr/bin/git -c protocol.version=2 fetch --prune --no-recurse-submodules --depth=1 origin +refs/heads/2.24.2:refs/remotes/origin/2.24.2
Error: fatal: couldn't find remote ref refs/heads/2.24.2
The process '/usr/bin/git' failed with exit code 128
Waiting 12 seconds before trying again
/usr/bin/git -c protocol.version=2 fetch --prune --no-recurse-submodules --depth=1 origin +refs/heads/2.24.2:refs/remotes/origin/2.24.2
Error: fatal: couldn't find remote ref refs/heads/2.24.2
Error: The process '/usr/bin/git' failed with exit code 128
Notice that even if I use fetch-depth > 1
the error still happens
Metadata
Metadata
Assignees
Labels
No labels