Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/promote-to-main-auto-trigger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eggdrop": patch
---

Rename release-to-main to promote-to-main and add automatic trigger on Version Packages PR merge
46 changes: 46 additions & 0 deletions .github/workflows/promote-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Automatically merges dev into main after a "Version Packages" PR is merged
# This completes the release process - Vercel will auto-deploy main to production
name: Promote to Main

on:
pull_request:
types: [closed]
branches: [dev]
# Keep manual trigger as backup
workflow_dispatch:

jobs:
promote:
name: Merge dev to main
runs-on: ubuntu-latest
# Only run if PR was merged (not just closed) AND is a Version Packages PR
# For workflow_dispatch, always run
if: >
github.event_name == 'workflow_dispatch' ||
(github.event.pull_request.merged == true &&
contains(github.event.pull_request.title, 'Version Packages'))
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: Merge dev into main
run: |
git checkout main
git pull origin main
git merge origin/dev --no-edit
git push origin main

- name: Summary
run: |
echo "✅ Successfully merged dev into main"
echo "🚀 Vercel will now deploy to production"
31 changes: 0 additions & 31 deletions .github/workflows/release-to-main.yml

This file was deleted.