From 1ddaf86d618e57337c7e71df34637342702c7de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 16 Apr 2022 09:36:42 +0100 Subject: [PATCH] fetch everything before trying to tag --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f68becc6..c1426c65 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,8 +18,8 @@ jobs: - uses: actions/checkout@v3 - run: | JOB_NAME=$(echo $JOB_NAME | sed 's|:|/|g') - git tag --list | grep $JOB_NAME || (git tag $JOB_NAME $REV && git push --tags) git fetch --all --tags + git tag --list | grep $JOB_NAME || (git tag $JOB_NAME $REV && git push --tags) if [[ ! git merge-base --is-ancestor $REV $JOB_NAME ]]; then git tag -f $JOB_NAME $REV git push --tags --force