z_stdlib
z_stdlib copied to clipboard
Publish action can't find tag
We tried to fix this in #84 using information from https://github.com/actions/checkout#checkout-v3
That didn't work:
===> Compiling zotonic_stdlib
===> Getting log of git repo failed in /github/workspace. Falling back to version 0.0.0
===> Running edoc for zotonic_stdlib
...
===> Verifying dependencies...
===> Getting log of git repo failed in /github/workspace. Falling back to version 0.0.0
===> Getting log of git repo failed in /github/workspace. Falling back to version 0.0.0
Publishing zotonic_stdlib 0.0.0 to hexpm
I did see that the whole git log was fetched though.
Run actions/checkout@v3
with:
fetch-depth: 0
repository: zotonic/z_stdlib
token: ***
ssh-strict: true
persist-credentials: true
clean: true
lfs: false
submodules: false
set-safe-directory: true
Syncing repository: zotonic/z_stdlib
Getting Git version info
Working directory is '/home/runner/work/z_stdlib/z_stdlib'
/usr/bin/git version
git version 2.40.1
Temporarily overriding HOME='/home/runner/work/_temp/00dec6da-3800-4e45-9cfd-78ec5026595a' 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/z_stdlib/z_stdlib
Deleting the contents of '/home/runner/work/z_stdlib/z_stdlib'
Initializing the repository
/usr/bin/git init /home/runner/work/z_stdlib/z_stdlib
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /home/runner/work/z_stdlib/z_stdlib/.git/
/usr/bin/git remote add origin https://github.com/zotonic/z_stdlib
Disabling automatic garbage collection
/usr/bin/git config --local gc.auto 0
Setting up auth
/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
Fetching the repository
/usr/bin/git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
remote: Enumerating objects: 1457, done.
remote: Counting objects: 0% (1/385)
...
remote: Counting objects: 100% (385/385), done.
remote: Compressing objects: 0% (1/166)
...
remote: Compressing objects: 100% (166/166), done.
Receiving objects: 0% (1/1457)
...
Receiving objects: 100% (1457/1457), 784.66 KiB | 25.31 MiB/s, done.
Resolving deltas: 0% (0/995)
...
Resolving deltas: 100% (995/995), done.
From https://github.com/zotonic/z_stdlib
* [new branch] 0.x -> origin/0.x
* [new branch] debug -> origin/debug
* [new branch] master -> origin/master
* [new tag] 0.1.0 -> 0.1.0
* [new tag] 1.0.0 -> 1.0.0
* [new tag] 1.0.0-alpha1 -> 1.0.0-alpha1
* [new tag] 1.0.0-alpha2 -> 1.0.0-alpha2
* [new tag] 1.0.0-alpha3 -> 1.0.0-alpha3
* [new tag] 1.0.0-alpha4 -> 1.0.0-alpha4
* [new tag] 1.0.0-alpha5 -> 1.0.0-alpha5
* [new tag] 1.0.1 -> 1.0.1
* [new tag] 1.0.2 -> 1.0.2
* [new tag] 1.0.3 -> 1.0.3
* [new tag] 1.1.0 -> 1.1.0
* [new tag] 1.10.0 -> 1.10.0
* [new tag] 1.11.0 -> 1.11.0
* [new tag] 1.11.1 -> 1.11.1
* [new tag] 1.11.2 -> 1.11.2
* [new tag] 1.12.0 -> 1.12.0
* [new tag] 1.13.0 -> 1.13.0
* [new tag] 1.14.0 -> 1.14.0
* [new tag] 1.15.0 -> 1.15.0
* [new tag] 1.15.1 -> 1.15.1
* [new tag] 1.2.0 -> 1.2.0
* [new tag] 1.2.10 -> 1.2.10
* [new tag] 1.2.11 -> 1.2.11
* [new tag] 1.2.2 -> 1.2.2
* [new tag] 1.2.3 -> 1.2.3
* [new tag] 1.2.4 -> 1.2.4
* [new tag] 1.2.5 -> 1.2.5
* [new tag] 1.2.6 -> 1.2.6
* [new tag] 1.2.7 -> 1.2.7
* [new tag] 1.2.8 -> 1.2.8
* [new tag] 1.2.9 -> 1.2.9
* [new tag] 1.3.0 -> 1.3.0
* [new tag] 1.3.1 -> 1.3.1
* [new tag] 1.3.2 -> 1.3.2
* [new tag] 1.4.0 -> 1.4.0
* [new tag] 1.4.1 -> 1.4.1
* [new tag] 1.4.2 -> 1.4.2
* [new tag] 1.4.3 -> 1.4.3
* [new tag] 1.4.4 -> 1.4.4
* [new tag] 1.4.5 -> 1.4.5
* [new tag] 1.5.0 -> 1.5.0
* [new tag] 1.5.1 -> 1.5.1
* [new tag] 1.5.10 -> 1.5.10
* [new tag] 1.5.11 -> 1.5.11
* [new tag] 1.5.2 -> 1.5.2
* [new tag] 1.5.3 -> 1.5.3
* [new tag] 1.5.4 -> 1.5.4
* [new tag] 1.5.5 -> 1.5.5
* [new tag] 1.5.6 -> 1.5.6
* [new tag] 1.5.7 -> 1.5.7
* [new tag] 1.5.8 -> 1.5.8
* [new tag] 1.5.9 -> 1.5.9
* [new tag] 1.6.0 -> 1.6.0
* [new tag] 1.7.0 -> 1.7.0
* [new tag] 1.8.0 -> 1.8.0
* [new tag] 1.9.0 -> 1.9.0
* [new tag] fetch -> fetch
/usr/bin/git tag --list 1.15.1
1.15.1
/usr/bin/git rev-parse refs/tags/1.15.1
7a393880727c4f3847a31f62f35c7d93d06412cc
Determining the checkout info
Checking out the ref
/usr/bin/git checkout --progress --force refs/tags/1.15.1
Note: switching to 'refs/tags/1.15.1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 7a39388 Fix a problem where the publish action could not find the git tag (#84)
/usr/bin/git log -1 --format='%H'
'7a393880727c4f3847a31f62f35c7d93d06412cc'
/cc @mmzeeman @ddeboer
Latest log https://github.com/zotonic/z_stdlib/actions/runs/5087816140/jobs/9143547208