Skip to content

Commit

Permalink
Update PR Build workflow. (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave authored Feb 10, 2023
1 parent d0960cf commit f0a4cfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-564.build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update PR Build workflow triggers.

0 comments on commit f0a4cfd

Please sign in to comment.