From e54f1236ec06904489560f5187809f87ab91f6cc Mon Sep 17 00:00:00 2001 From: dacrab Date: Fri, 27 Dec 2024 13:07:03 +0200 Subject: [PATCH] ci: make release workflow reusable and call it from auto-tag --- .github/workflows/auto-tag.yml | 7 ++++++- .github/workflows/release.yml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 6411ac2..adfe54b 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -45,4 +45,9 @@ jobs: git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' git tag -a $new_tag -m "Release $new_tag" - git push origin $new_tag \ No newline at end of file + git push origin $new_tag + + release: + needs: auto-tag + uses: ./.github/workflows/release.yml + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f907e0..210977a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: Release on: + workflow_call: push: tags: - 'v*'