Steps can't reference git repositories using tags
Problem
Steps can't use Git annotated tags to load a step from a Git repository. Lightweight tags work.
Example
The following job succeeds:
my-job:
run:
- name: finish without error
step: gitlab.com/cam_swords_steps/exit@main
inputs:
exit_code: 0
The following job fails with the error message fetching commit object: object not found, even though there is a v0 tag.
my-job:
run:
- name: finish without error
step: gitlab.com/cam_swords_steps/exit@v0
inputs:
exit_code: 0
The difference between a lightweight and annotated Git tag
Git tags created with a message are annotated tags. Tags created without a message a lightweight tags.
Proposal
Lightweight tags should be able to be used when a step references a Git repository.
Edited by Cameron Swords