Skip to content

Commit 8696a8e

Browse files
committed
Force push on tag name
1 parent 84d2e22 commit 8696a8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/preview-branch.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,8 @@ jobs:
122122
cd repo
123123
git config user.name ${{ github.actor }}
124124
git config user.email ${{ github.actor }}@users.noreply.github.com
125-
git push origin :${{ steps.variables.outputs.tag_name }}
126125
git tag -f ${{ steps.variables.outputs.tag_name }} ${{ github.sha }}
127-
git push origin ${{ steps.variables.outputs.tag_name }}
126+
git push -f origin ${{ steps.variables.outputs.tag_name }}
128127
129128
- name: Create a release
130129
uses: actions/create-release@v1

0 commit comments

Comments
 (0)