Skip to content

Commit 8f0dba0

Browse files
authored
fix: push manifests directly to main instead of PRs (#32)
1 parent b8defb7 commit 8f0dba0

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -211,19 +211,11 @@ jobs:
211211
mv ../vanity_crypto.rb.tmp Formula/vanity_crypto.rb
212212
mv ../vanity_crypto.json.tmp scoop/vanity_crypto.json
213213
214-
# 4. Commit & Push to Branch & PR
215-
BRANCH_NAME="chore/manifests-$VERSION"
216-
git checkout -b "$BRANCH_NAME"
214+
# 4. Commit & Push directly to main
215+
git checkout main
217216
git add Formula/vanity_crypto.rb scoop/vanity_crypto.json
218-
git commit -m "chore: update manifests for v$VERSION" || echo "No changes to commit"
219-
220-
# Pull latest main to prevent push rejection
221-
git fetch origin main
222-
git rebase origin/main || (echo "Rebase conflict detected, aborting" && git rebase --abort && exit 1)
223-
224-
git push origin "$BRANCH_NAME"
225-
226-
gh pr create --title "chore: update manifests for v$VERSION" --body "Automated manifest updates for release v$VERSION" --base main --head "$BRANCH_NAME"
217+
git commit -m "chore: update manifests for v$VERSION [skip ci]" || echo "No changes to commit"
218+
git push origin main
227219
228220
- name: Upload Signatures to Release
229221
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)