Skip to content

Commit ae54e14

Browse files
authored
Merge pull request #87 from vue-pivottable/feat/ci
fix: update workflows
2 parents 96e924f + 855b765 commit ae54e14

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/sync-vue-pivottable.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,14 @@ jobs:
3030
git config --global user.name "GitHub App"
3131
git config --global user.email "[email protected]"
3232
33-
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
34-
3533
git fetch origin
3634
37-
if git show-ref --quiet refs/remotes/origin/release; then
38-
git checkout release
35+
if git ls-remote --exit-code --heads origin release; then
36+
git fetch origin release
37+
git checkout -b release origin/release
3938
git merge --no-edit origin/main
4039
else
4140
git checkout -b release origin/main
4241
fi
4342
44-
if git diff --quiet origin/release; then
45-
echo "No changes to push."
46-
else
47-
git push origin release
48-
fi
43+
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/vue-pivottable/vue3-pivottable.git" release

0 commit comments

Comments
 (0)