From f34819458301ff22d217bfd4802b8fb241fac1a7 Mon Sep 17 00:00:00 2001 From: matan h <56131718+matan-h@users.noreply.github.com> Date: Sun, 26 Nov 2023 09:16:41 +0200 Subject: [PATCH] Update main.yml. try.v3 --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a456a0a..f123f21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,10 @@ jobs: - name: Yarn bump patch if: ${{ !startsWith(github.ref, 'refs/tags/v') }} - run: echo "ref=$(yarn version --patch --json|grep -o '[0-9.]*'|tail -1)" >> "$GITHUB_ENV" + run: | + git config user.email "git.action@github.com" + git config user.name "git.action" + echo "ref=$(yarn version --patch --json|grep -o '[0-9.]*'|tail -1)" >> "$GITHUB_ENV" - name: Build @@ -41,7 +44,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag: ${{ github.ref || env.ref }} + tag: ${{ env.ref || github.ref }} # release_name: Release ${{ github.ref }} body: "Build for commit : ${{ github.event.head_commit.message || 'automatic' }}" # TODO: changelog, and build only on tag draft: false