allow close-featurebranch to be done through workflow dispatch
This commit is contained in:
parent
4337463402
commit
b22f7804db
|
@ -5,6 +5,12 @@ on:
|
|||
types: [closed]
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
BRANCH:
|
||||
type: string
|
||||
description: Which featurebranch branch to destroy?
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
@ -13,7 +19,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: passeidireto/trigger-external-workflow-action@main
|
||||
env:
|
||||
PAYLOAD_BRANCH: ${{ github.head_ref }}
|
||||
PAYLOAD_BRANCH: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.BRANCH || github.head_ref }}
|
||||
PAYLOAD_PR_NUMBER: ${{ github.ref }}
|
||||
with:
|
||||
repository: budibase/budibase-deploys
|
||||
|
|
Loading…
Reference in New Issue