From 5b2c9c9c7c2177527729d19bab20c4ff04bf9a5f Mon Sep 17 00:00:00 2001 From: Vyachean <66068072+Vyachean@users.noreply.github.com> Date: Sat, 28 Sep 2024 12:03:19 +0400 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3664cce..fd7ae02 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: id: version run: | VERSION=$(jq -r .version package.json) - echo "::set-output name=version::$VERSION" + echo "version=$VERSION" >> $GITHUB_ENV if git tag | grep -q "$VERSION"; then echo "Version $VERSION already exists." exit 0 @@ -36,15 +36,15 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v${{ steps.version.outputs.version }} - release_name: v${{ steps.version.outputs.version }} + tag_name: v${{ env.version }} + release_name: v${{ env.version }} draft: false prerelease: true - name: Upload Release Assets uses: softprops/action-gh-release@v1 with: - tag_name: v${{ steps.version.outputs.version }} + tag_name: v${{ env.version }} files: | .output/** env: