run gh action only if test succ

This commit is contained in:
Boshi Lian 2021-10-04 12:10:00 +00:00
parent 4a2ac60a07
commit adaa4b7a7b
4 changed files with 12 additions and 12 deletions

View file

@ -6,10 +6,10 @@ name: Docker
# documentation.
on:
push:
branches: [ master ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
workflow_run:
workflows: ["E2E"]
types: [completed]
branches: [master]
env:
# Use docker.io for Docker Hub if empty

View file

@ -1,10 +1,9 @@
name: E2E
on:
push:
branches: [ master ]
pull_request:
types: [assigned, opened, synchronize, reopened]
workflow_run:
workflows: ["Go"]
types: [completed]
jobs:

View file

@ -5,6 +5,7 @@ on:
branches: [ master ]
pull_request:
types: [assigned, opened, synchronize, reopened]
tags: [ 'v*.*.*' ]
jobs:
@ -15,8 +16,6 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go
- name: Check out code into the Go module directory

View file

@ -1,8 +1,10 @@
name: Snap package
on:
push:
branches: [ master ]
workflow_run:
workflows: ["E2E"]
types: [completed]
branches: [master]
jobs: