chore: improve pre-release CI to just use dropdown (#1080)

* chore: improve pre-release CI to just use dropdown

* chore: implement requested changes
This commit is contained in:
Ralph Khreish
2025-08-03 17:04:29 +03:00
committed by GitHub
parent e8ceb08341
commit fb15c2eaf7

View File

@@ -2,24 +2,17 @@ name: Pre-Release (RC)
on: on:
workflow_dispatch: # Allows manual triggering from GitHub UI/API workflow_dispatch: # Allows manual triggering from GitHub UI/API
inputs:
branch:
description: 'Branch to create pre-release from (e.g., next, develop)'
required: false
default: 'next'
type: string
concurrency: pre-release-${{ github.ref_name }} concurrency: pre-release-${{ github.ref_name }}
jobs: jobs:
rc: rc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Only allow pre-releases on non-main branches # Only allow pre-releases on non-main branches
if: github.ref != 'refs/heads/main' && inputs.branch != 'main' if: github.ref != 'refs/heads/main'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ inputs.branch || github.ref }}
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
@@ -66,5 +59,5 @@ jobs:
uses: actions-js/push@master uses: actions-js/push@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ inputs.branch || github.ref_name }} branch: ${{ github.ref }}
message: "chore: rc version bump" message: "chore: rc version bump"