Limit branches/tags of container build

Limit branch
pull/245/head^2
dgtlmoon 3 years ago committed by GitHub
parent d70252c1eb
commit 3525f43469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,9 +1,11 @@
name: Build and push containers
on:
# Automatically triggered by a testing workflow passing
# Automatically triggered by a testing workflow passing, but this is only checked when it lands in the `master`/default branch
workflow_run:
workflows: ["ChangeDetection.io Test"]
branches: [master]
tags: ['0.*']
types: [completed]
# Or a new tagged release
@ -24,6 +26,7 @@ jobs:
echo c: ${{ github.event.workflow_run.conclusion }}
echo r: ${{ github.event.workflow_run }}
echo tname: "${{ github.event.release.tag_name }}"
echo headbranch: -${{ github.event.workflow_run.head_branch }}-
set
build-push-containers:

Loading…
Cancel
Save