Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish action can't find tag #85

Open
mworrell opened this issue May 26, 2023 · 1 comment
Open

Publish action can't find tag #85

mworrell opened this issue May 26, 2023 · 1 comment

Comments

@mworrell
Copy link
Member

mworrell commented May 26, 2023

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

@mworrell
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant