.github: run action on approved PR or if started manually

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-04-13 11:12:09 +02:00
committed by Tobias Waldekranz
parent 1ebdf05371
commit e9757ac3ef
+3 -1
View File
@@ -8,11 +8,13 @@ name: Bob the Builder
# branches:
# - '*'
on:
pull_request:
pull_request_review:
types: [submitted]
workflow_dispatch:
jobs:
build:
if: github.event.review.state == 'approved' || github.event_name == 'workflow_dispatch'
name: Build ${{ matrix.platform }}
runs-on: ubuntu-latest
strategy: