mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
ci.yaml: run only when ready and / or review requested
This commit is contained in:
parent
a1a15146c7
commit
c88519d5ae
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@ -1,6 +1,9 @@
|
||||
name: "Run build"
|
||||
on:
|
||||
pull_request:
|
||||
# Run when the PR is ready and each time a review is re-requested
|
||||
# (i.e. after feedback has been addressed).
|
||||
types: [review_requested, ready_for_review]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
image_formats:
|
||||
@ -35,6 +38,8 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
packages:
|
||||
# Do not run when still in draft mode but a review was requested anyway
|
||||
if: github.event.pull_request.draft == false
|
||||
name: "Build Flatcar packages"
|
||||
runs-on:
|
||||
- self-hosted
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user