From 7ac8feb1e1cfe375a2fc31d47345b8d97bca9da1 Mon Sep 17 00:00:00 2001 From: Ohkubo KOHEI Date: Sat, 29 Nov 2025 06:56:01 +0000 Subject: [PATCH] stop if tag exists --- .github/workflows/release.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f78dbd..0567c5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,10 +8,10 @@ on: jobs: test: uses: ./.github/workflows/test.yml - release: + check_tag: runs-on: ubuntu-latest - permissions: - contents: write + outputs: + TAG_NAME: ${{ steps.get_tag.outputs.TAG_NAME }} steps: - uses: actions/checkout@v6 with: @@ -26,13 +26,20 @@ jobs: fi echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT + release: + needs: [test, check_tag] + if: needs.check_tag.outputs.TAG_NAME != '' + permissions: + contents: write + env: + TAG_NAME: ${{ needs.check_tag.outputs.TAG_NAME }} + runs-on: ubuntu-latest + steps: - name: Setup Deno uses: denoland/setup-deno@v2 - name: bump version run: deno task version-bump - name: Create Tag - env: - TAG_NAME: ${{ steps.get_tag.outputs.TAG_NAME }} run: | git config user.email "o@kbn.one" git config user.name "github action"