From 0b559e61f815997fb8f92d60448f269fc3aa050e Mon Sep 17 00:00:00 2001 From: Ikpil Choi Date: Sat, 9 Sep 2023 10:34:01 +0900 Subject: [PATCH] Update on-tag-do-release.yml test2 --- .github/workflows/on-tag-do-release.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/on-tag-do-release.yml b/.github/workflows/on-tag-do-release.yml index 8568faa..22ef282 100644 --- a/.github/workflows/on-tag-do-release.yml +++ b/.github/workflows/on-tag-do-release.yml @@ -4,16 +4,16 @@ on: tags: - 'v[0-9]+\.[0-9]+\.[0-9]+' jobs: - release: + test: runs-on: ubuntu-latest steps: - - name: Run - run: | - dotnet tool install --global GitReleaseManager.Tool - tag="${GITHUB_REF:10}" - owner="${GITHUB_REPOSITORY%/*}" - repo="${GITHUB_REPOSITORY#*/}" - dotnet-gitreleasemanager create -m ${tag} --token ${{secrets.GITHUB_TOKEN}} -o ${owner} -r ${repo} - dotnet-gitreleasemanager close -m ${tag} --token ${{secrets.GITHUB_TOKEN}} -o ${owner} -r ${repo} - dotnet-gitreleasemanager publish -t ${tag} --token ${{secrets.GITHUB_TOKEN}} -o ${owner} -r ${repo} - shell: bash + - uses: actions/checkout@v2 + - name: Set output + id: vars + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT + - name: Check output + env: + RELEASE_VERSION: ${{ steps.vars.outputs.tag }} + run: | + echo $RELEASE_VERSION + echo ${{ steps.vars.outputs.tag }}