Only running alpha builds when PR labeled with Trigger-PR-Build

This commit is contained in:
Stefan Ceriu
2022-10-17 19:25:43 +03:00
committed by Stefan Ceriu
parent 149c0ec476
commit db5b37e9bf
+5 -1
View File
@@ -27,7 +27,11 @@ jobs:
build:
# Run job if secrets are available (not available for forks).
needs: [check-secret]
if: needs.check-secret.outputs.out-key == 'true'
if: |
needs.check-secret.outputs.out-key == 'true' &&
(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