We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 621a37d commit 1749e11Copy full SHA for 1749e11
.github/actions/version/action.yml
@@ -37,6 +37,9 @@ outputs:
37
runs:
38
using: "composite"
39
steps:
40
+ - name: Fetch Git tags
41
+ run: git fetch --prune --unshallow --tags > /dev/null
42
+ shell: bash
43
- run: ${{ github.action_path }}/entrypoint.sh
44
id: entrypoint
45
shell: bash
.github/actions/version/entrypoint.sh
@@ -58,10 +58,6 @@ parse_semver_component() {
58
}
59
60
check_git_tag_exists() {
61
- git fetch --prune --unshallow --tags > /dev/null || {
62
- echo "Failed to fetch git tags. Make sure 'actions/checkout' was used before this action."
63
- exit 1
64
- }
65
git show-ref --tags "v$1" --quiet && echo "true" || echo "false"
66
67
0 commit comments