devops: further enhance workflow syntax (#11416)

This commit is contained in:
Andrey Lushnikov 2022-01-14 18:32:40 -07:00 committed by GitHub
parent 205969e958
commit 26da1cc2cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,11 @@ name: "publish release - Docker"
on:
workflow_dispatch:
inputs:
is_release:
type: boolean
description: "Is this a release image?"
release:
types: [published]
@ -30,6 +35,6 @@ jobs:
- run: npm run build
- run: npx playwright install-deps
- run: ./utils/docker/publish_docker.sh stable
if: "!github.event.release.prerelease"
if: (github.event_name != 'workflow_dispatch' && !github.event.release.prerelease) || (github.event_name == 'workflow_dispatch' && github.event.inputs.is_release)
- run: ./utils/docker/publish_docker.sh canary
if: "github.event.release.prerelease"
if: (github.event_name != 'workflow_dispatch' && github.event.release.prerelease) || (github.event_name == 'workflow_dispatch' && !github.event.inputs.is_release)