budibase/.github/workflows/deploy-featurebranch.yml

31 lines
928 B
YAML
Raw Normal View History

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