Skip to content

Commit a72e5ac

Browse files
philipandamkopec
authored andcommitted
tag-check.yml: remove redundant tag fetches
Upstream-Status: Inappropriate [Dasharo downstream] Signed-off-by: Filip Gołaś <[email protected]>
1 parent 5b5b0ad commit a72e5ac

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.github/workflows/tag-check.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,17 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
with:
14-
fetch-depth: 0
15-
fetch-tags: true
1613

1714
- name: Force fetch tags
1815
run: |
1916
git fetch --tags --force --prune
20-
git fetch origin "refs/tags/${GITHUB_REF_NAME}:refs/tags/${GITHUB_REF_NAME}"
2117
2218
- name: Check tag is annotated
2319
shell: bash
2420
run: |
2521
set -euo pipefail
2622
tag="${GITHUB_REF_NAME}"
2723
ref="refs/tags/${tag}"
28-
echo $ref
2924
3025
if ! git show-ref --verify --quiet "$ref"; then
3126
echo "::error::Tag '${tag}' not found after checkout"

0 commit comments

Comments
 (0)