From 8696a8eba6f4049961c4a5b73cd165c690880e60 Mon Sep 17 00:00:00 2001 From: William Wong Date: Tue, 7 Jul 2020 18:18:38 -0700 Subject: [PATCH] Force push on tag name --- .github/workflows/preview-branch.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/preview-branch.yml b/.github/workflows/preview-branch.yml index bc2248c77f..3e4121ca9a 100644 --- a/.github/workflows/preview-branch.yml +++ b/.github/workflows/preview-branch.yml @@ -122,9 +122,8 @@ jobs: cd repo git config user.name ${{ github.actor }} git config user.email ${{ github.actor }}@users.noreply.github.com - git push origin :${{ steps.variables.outputs.tag_name }} git tag -f ${{ steps.variables.outputs.tag_name }} ${{ github.sha }} - git push origin ${{ steps.variables.outputs.tag_name }} + git push -f origin ${{ steps.variables.outputs.tag_name }} - name: Create a release uses: actions/create-release@v1