Skip to content

Commit

Permalink
Dependent workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pijng committed Jun 1, 2024
1 parent 08c1a3a commit f087023
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: goreleaser

on:
workflow_run:
workflows: ["Tests"]
types:
- completed
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
tests:
uses: ./.github/workflows/tests.yml
build-web:
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest

needs: [tests]
outputs:
web-build: ${{ steps.build.outputs.web-build }}

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ on:
push:
branches:
- '**'
tags:
- '**'
pull_request:
branches:
- '**'
workflow_call:

jobs:
go-tests:
Expand Down

0 comments on commit f087023

Please sign in to comment.