Only build alpha builds when PR labelled as Trigger-PR-Build

This commit is contained in:
Stefan Ceriu 2022-10-14 14:27:47 +03:00 committed by Stefan Ceriu
parent 8f96dc3303
commit 49ee365a5e

View File

@ -1,17 +1,19 @@
name: Alpha release
on:
# Triggers the workflow on any pull request
pull_request:
types: [ labeled, synchronized, opened, reopened ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
# Don't run for forks as secrets are unavailable.
if: github.event.pull_request.head.repo.full_name == github.repository
if: |
github.event.pull_request.head.repo.full_name == github.repository &&
(github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'Trigger-PR-Build')))
name: Release
runs-on: macos-12