Skip to content

Commit 273b1f3

Browse files
committed
fix vuru-release
1 parent ec9adb7 commit 273b1f3

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/vuru-release.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,30 +64,23 @@ jobs:
6464
# Verify change
6565
cat "$TEMPLATE"
6666
67-
# Push changes to bot's fork and create PR
68-
VERSION=${GITHUB_REF_NAME#v}
67+
# Push changes to new branch
6968
BRANCH="release/vuru-$VERSION"
7069
cd vup
71-
git config user.name "vup-bot"
72-
git config user.email "vup-bot.jzdyf@mailer.me"
73-
74-
# Add bot's fork as remote
75-
git remote add fork https://x-access-token:${{ secrets.BOT_ACCESS_TOKEN }}@github.com/vup-bot/vup.git
7670
77-
# Make workflow idempotent - delete branch from fork if exists
78-
git push fork --delete "$BRANCH" || true
71+
# Make workflow idempotent
72+
git push origin --delete "$BRANCH" || true
7973
8074
git checkout -b "$BRANCH"
8175
git add vup/srcpkgs/core/vuru/template
8276
git commit -m "auto: update vuru to $VERSION"
83-
git push -u fork "$BRANCH"
77+
git push -u origin "$BRANCH"
8478
85-
# Create Pull Request from fork to main repo
79+
# Create Pull Request
8680
gh pr create \
87-
--repo VUP-Linux/vup \
8881
--title "auto: update vuru to $VERSION" \
8982
--body "Automated update containing checksum changes for vuru v$VERSION." \
90-
--head "vup-bot:$BRANCH" \
83+
--head "$BRANCH" \
9184
--base main
9285
env:
93-
GH_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
86+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)