Update PR Build workflow. (#564)

This commit is contained in:
Doug
2023-02-10 13:01:51 +00:00
committed by GitHub
parent d0960cf75c
commit f0a4cfd946
2 changed files with 6 additions and 8 deletions
@@ -1,17 +1,14 @@
name: Alpha release name: PR Build
on: on:
pull_request: pull_request:
types: [ labeled, synchronize, opened, reopened ]
workflow_dispatch:
jobs: jobs:
build: build:
# Don't run for forks as secrets are unavailable. # Only run for PRs that contain the trigger label. The action will fail for forks due to
if: | # missing secrets, but there's no need to handle this as it won't run automatically.
github.event.pull_request.head.repo.full_name == github.repository && if: contains(github.event.pull_request.labels.*.name, 'Trigger-PR-Build')
(github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'Trigger-PR-Build')))
name: Release name: Release
runs-on: macos-12 runs-on: macos-12
+1
View File
@@ -0,0 +1 @@
Update PR Build workflow triggers.