allow close-featurebranch to be done through workflow dispatch

This commit is contained in:
Martin McKeaveney 2023-10-16 12:21:45 +01:00
parent 4337463402
commit b22f7804db
1 changed files with 7 additions and 1 deletions

View File

@ -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