mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-25 16:09:41 -05:00
+10








3c02eedca6
Co-authored-by: Kevin B. <kurami32_kbm@proton.me> Co-authored-by: Gabriel Górski <me@glaeqen.eu> Co-authored-by: Joel Godfrey <82655889+BaccanoMob@users.noreply.github.com> Co-authored-by: Shane Chiu <71911511+pwn2ooown@users.noreply.github.com> Co-authored-by: carloda <35763669+carloda@users.noreply.github.com> Co-authored-by: Taufik Hidayat <taufikdev88@gmail.com> Co-authored-by: Stephan Paternotte <Stephan-P@users.noreply.github.com> Co-authored-by: SIDDHU SINGH <siddhu3116@gmail.com> Co-authored-by: Gaurav Kalal <117557391+Gorupa@users.noreply.github.com> Co-authored-by: Nebula <40148908+nebula-it@users.noreply.github.com> Co-authored-by: Juan Soler <juansoler@gmail.com> Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> Co-authored-by: Anatolii Prylutskyi <anpryl@gmail.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Graham Steffaniak <graham@debian-lake.ghome.net> Co-authored-by: Neil <kylelzzz02@icloud.com> Co-authored-by: Graham <info@quantumx-apps.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
name: Create Dev Version
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: "Version to create (format: 0.0.0)"
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
create-dev-branch:
|
|
name: Create Dev Branch
|
|
runs-on: ubuntu-24.04-arm
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.PAT }} # Uses the Personal Access Token
|
|
|
|
- name: Validate version format
|
|
id: validate_version
|
|
run: |
|
|
VERSION="${{ github.event.inputs.version }}"
|
|
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
echo "❌ ERROR: Version must be in '0.0.0' format."
|
|
exit 1
|
|
fi
|
|
echo "✅ Version format validated: $VERSION"
|
|
|
|
- name: Check if branch already exists
|
|
id: check_branch
|
|
run: |
|
|
VERSION="${{ github.event.inputs.version }}"
|
|
DEV_BRANCH="dev/v$VERSION"
|
|
|
|
if git ls-remote --exit-code origin "$DEV_BRANCH"; then
|
|
echo "❌ ERROR: Branch '$DEV_BRANCH' already exists!"
|
|
exit 1
|
|
fi
|
|
echo "✅ Branch '$DEV_BRANCH' does not exist."
|
|
|
|
- name: Create and push new dev branch
|
|
run: |
|
|
VERSION="${{ github.event.inputs.version }}"
|
|
DEV_BRANCH="dev/v$VERSION"
|
|
|
|
# Fetch latest changes
|
|
git fetch origin main
|
|
|
|
# Create new branch from main
|
|
git checkout -b "$DEV_BRANCH" origin/main
|
|
|
|
# Push branch to remote
|
|
git push origin "$DEV_BRANCH"
|
|
|
|
echo "✅ Successfully created branch '$DEV_BRANCH'!"
|