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] types: [closed]
branches: branches:
- master - master
workflow_dispatch:
inputs:
BRANCH:
type: string
description: Which featurebranch branch to destroy?
required: true
jobs: jobs:
release: release:
@ -13,7 +19,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: passeidireto/trigger-external-workflow-action@main - uses: passeidireto/trigger-external-workflow-action@main
env: 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 }} PAYLOAD_PR_NUMBER: ${{ github.ref }}
with: with:
repository: budibase/budibase-deploys repository: budibase/budibase-deploys