2023-08-25 02:51:46 +12:00
|
|
|
name: deploy-featurebranch
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-12-14 23:04:28 +13:00
|
|
|
types: [
|
|
|
|
labeled,
|
2023-12-14 23:14:26 +13:00
|
|
|
# default types below (https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request)
|
2023-12-14 23:04:28 +13:00
|
|
|
opened,
|
|
|
|
synchronize,
|
|
|
|
reopened,
|
|
|
|
]
|
2023-08-25 02:51:46 +12:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
2023-12-14 22:48:57 +13:00
|
|
|
if: |
|
2023-12-14 22:52:29 +13:00
|
|
|
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'Budibase/budibase') &&
|
2023-12-14 23:09:04 +13:00
|
|
|
contains(github.event.pull_request.labels.*.name, 'feature-branch')
|
2023-08-25 02:51:46 +12:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-01-25 21:15:37 +13:00
|
|
|
- uses: actions/checkout@v4
|
2023-08-25 02:51:46 +12:00
|
|
|
- uses: passeidireto/trigger-external-workflow-action@main
|
|
|
|
env:
|
2023-09-26 05:00:00 +13:00
|
|
|
PAYLOAD_BRANCH: ${{ github.head_ref }}
|
2023-10-11 22:12:14 +13:00
|
|
|
PAYLOAD_PR_NUMBER: ${{ github.event.pull_request.number }}
|
2023-08-25 02:51:46 +12:00
|
|
|
with:
|
|
|
|
repository: budibase/budibase-deploys
|
|
|
|
event: featurebranch-qa-deploy
|
|
|
|
github_pat: ${{ secrets.GH_ACCESS_TOKEN }}
|