fetch everything before trying to tag
This commit is contained in:
parent
01240edb60
commit
1ddaf86d61
1 changed files with 1 additions and 1 deletions
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue