Update workflows to use Panel-stable and Panel-unstable branch names

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/e419b138-7289-46d7-b7be-6c9e455f47af

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-01 18:02:06 +00:00 committed by GitHub
parent e2a5d3d1c4
commit 677d685e8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 45 additions and 56 deletions

View file

@ -24,29 +24,17 @@ jobs:
steps:
# ──────────────────────────────────────────────
# 1. Checkout the full repository history so we
# can inspect branches and create tags.
# 1. Checkout Panel-stable with full history so
# we can inspect branches and create tags.
# ──────────────────────────────────────────────
- name: Checkout repository
- name: Checkout Panel-stable
uses: actions/checkout@v4
with:
ref: Panel-stable
fetch-depth: 0
# ──────────────────────────────────────────────
# 2. Safety: only allow releases from the
# "stable" branch.
# ──────────────────────────────────────────────
- name: Verify we are on the stable branch
run: |
BRANCH=$(git rev-parse --abbrev-ref HEAD)
echo "Current branch: ${BRANCH}"
if [ "${BRANCH}" != "stable" ]; then
echo "::error::Releases must be created from the 'stable' branch. Current branch is '${BRANCH}'."
exit 1
fi
# ──────────────────────────────────────────────
# 3. Safety: abort if the tag already exists to
# 2. Safety: abort if the tag already exists to
# prevent accidental overwrites.
# ──────────────────────────────────────────────
- name: Check that tag does not already exist
@ -60,8 +48,8 @@ jobs:
echo "Tag '${VERSION}' does not exist yet — safe to proceed."
# ──────────────────────────────────────────────
# 4. Create the annotated git tag locally and
# push it to origin.
# 3. Create the annotated git tag on Panel-stable
# and push it to origin.
# ──────────────────────────────────────────────
- name: Create and push git tag
run: |
@ -73,7 +61,7 @@ jobs:
echo "Tag '${VERSION}' pushed to origin."
# ──────────────────────────────────────────────
# 5. Build the release ZIP, excluding files that
# 4. Build the release ZIP, excluding files that
# should never ship (secrets, dev artifacts,
# version-control metadata, etc.).
# ──────────────────────────────────────────────
@ -102,7 +90,7 @@ jobs:
ls -lh "${ARCHIVE}"
# ──────────────────────────────────────────────
# 6. Create the GitHub Release and upload the
# 5. Create the GitHub Release and upload the
# ZIP asset. Uses only the built-in
# GITHUB_TOKEN — no personal token needed.
# ──────────────────────────────────────────────