Merge pull request #10794 from Budibase/fix_release_pipeline
Fix release pipeline
This commit is contained in:
commit
14a88050ac
|
@ -9,12 +9,6 @@ on:
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||||
# Exclude all pre-releases
|
# Exclude all pre-releases
|
||||||
- "!v*[0-9]+.[0-9]+.[0-9]+-*"
|
- "!v*[0-9]+.[0-9]+.[0-9]+-*"
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
tags:
|
|
||||||
description: "Release tag"
|
|
||||||
required: true
|
|
||||||
type: boolean
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Posthog token used by ui at build time
|
# Posthog token used by ui at build time
|
||||||
|
@ -33,12 +27,13 @@ jobs:
|
||||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Fail if branch is not master
|
- name: Fail if tag is not master
|
||||||
if: github.ref != 'refs/heads/master'
|
|
||||||
run: |
|
run: |
|
||||||
echo "Ref is not master, you must run this job from master."
|
if ! git merge-base --is-ancestor ${{ github.sha }} origin/master; then
|
||||||
// Change to "exit 1" when merged. Left to 0 to not fail all the pipelines and not to cause noise
|
echo "Tag is not in master. This pipeline can only execute tags that are present on the master branch"
|
||||||
exit 0
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue