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