mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-24 23:22:38 +08:00
ci: Prevent RC versions from being promoted to stable/beta channels (#22388)
This commit is contained in:
@@ -41,6 +41,17 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Block RC promotion to stable/beta
|
||||
env:
|
||||
INPUT_VERSION: ${{ github.event.inputs.version }}
|
||||
CHANNEL: ${{ github.event.inputs.release-channel }}
|
||||
run: |
|
||||
if [[ "$INPUT_VERSION" == *"-rc."* ]]; then
|
||||
echo "::error::RC versions cannot be promoted to '$CHANNEL' channel. Version '$INPUT_VERSION' contains '-rc.'"
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Version '$INPUT_VERSION' is allowed for '$CHANNEL' channel"
|
||||
|
||||
release-to-npm:
|
||||
name: Release to NPM
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user