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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View File

@ -1,17 +1,14 @@
name: Alpha release
name: PR Build
on:
pull_request:
workflow_dispatch:
types: [ labeled, synchronize, opened, reopened ]
jobs:
build:
# Don't run for forks as secrets are unavailable.
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')))
# Only run for PRs that contain the trigger label. The action will fail for forks due to
# missing secrets, but there's no need to handle this as it won't run automatically.
if: contains(github.event.pull_request.labels.*.name, 'Trigger-PR-Build')
name: Release
runs-on: macos-12

1
changelog.d/pr-564.build Normal file
View File

@ -0,0 +1 @@
Update PR Build workflow triggers.