1
0
Fork 0
mirror of synced 2024-07-14 18:55:45 +12:00
budibase/.github/workflows/close-featurebranch.yml

29 lines
919 B
YAML
Raw Normal View History

name: close-featurebranch
on:
pull_request:
2023-12-14 23:14:05 +13:00
types: [closed, unlabeled]
workflow_dispatch:
inputs:
BRANCH:
type: string
description: Which featurebranch branch to destroy?
required: true
jobs:
release:
2023-12-14 23:14:05 +13:00
if: |
2023-12-14 23:26:28 +13:00
(github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'feature-branch')) ||
github.event.label.name == 'feature-branch'
runs-on: ubuntu-latest
steps:
2024-01-25 21:15:37 +13:00
- uses: actions/checkout@v4
- uses: passeidireto/trigger-external-workflow-action@main
env:
PAYLOAD_BRANCH: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.BRANCH || github.head_ref }}
PAYLOAD_PR_NUMBER: ${{ github.event.pull_request.number }}
with:
repository: budibase/budibase-deploys
event: featurebranch-qa-close
github_pat: ${{ secrets.GH_ACCESS_TOKEN }}