We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be1ea5 commit 4e97b9fCopy full SHA for 4e97b9f
.github/workflows/deploy.yml
@@ -24,10 +24,6 @@ jobs:
24
ORIGIN_URL=$(git remote get-url origin)
25
SUFFIX=".git"
26
TARGET_URL=${ORIGIN_URL%$SUFFIX}
27
-
28
- if git ls-remote --heads origin ${TARGET_BRANCH} | grep ${TARGET_BRANCH}; then
29
- git push origin --delete ${TARGET_BRANCH}
30
- fi
31
32
git fetch origin
33
git checkout -b ${TARGET_BRANCH} ${BASE_BRANCH}
@@ -54,4 +50,4 @@ jobs:
54
50
git add .
55
51
git commit -m "GitHub Actions Auto Deploy"
56
52
57
- git push origin "${TARGET_BRANCH}"
53
+ git push -f origin "${TARGET_BRANCH}"
0 commit comments