Skip to content
Discussion options

You must be logged in to vote

The problem can be resolved by checking out the repository with the following setup:

      - uses: actions/[email protected]
        with:
          fetch-depth: 0
          ref: ${{ github.head_ref }}

The key point is the line fetch-depth: 0 which adjusts the number of commits being checked out. By default, actions/checkout will only checkout 1 commit (the one referred to by HEAD) in order to improve the performance, especially in repositories with many commits. Unfortunately, the last commit is not necessarily one with the queried tag, in your case v1.2.3. Thus, Aeruginous cannot find the tag because it has no access to the respective commit.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kevinmatthes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
1 participant