From f087023ec9bde84291183e61329a823d6782eb51 Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 1 Jun 2024 12:18:35 +0300 Subject: [PATCH] Dependent workflows --- .github/workflows/release.yml | 12 ++++++------ .github/workflows/tests.yml | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d3fa19..c6a396e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cf94ac9..d2ef6dd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,9 +4,10 @@ on: push: branches: - '**' - tags: - - '**' pull_request: + branches: + - '**' + workflow_call: jobs: go-tests: