From 8275789304640f7e33c2ced8d95dc40442c445fa Mon Sep 17 00:00:00 2001
From: rszyma <rszyma.dev@gmail.com>
Date: Sun, 3 Dec 2023 16:58:45 +0100
Subject: [PATCH] ci: fix publish.yml

---
 .github/workflows/publish.yml | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 078c6f7..3b2d1a0 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -20,8 +20,8 @@ jobs:
     - name: Setup - git
       run: |
         git --version
-        git config user.name "GitHub Actions Bot"
-        git config user.email "<>"
+        git config user.name "github-actions[bot]"
+        git config user.email "github-actions[bot]@users.noreply.github.com"
         git status
 
     - name: Setup - just
@@ -40,7 +40,7 @@ jobs:
 
     - name: Try bump kanata
       run: |
-        status=$(just --quiet bump_kanata; echo $?)
+        status=$(just bump_kanata > /dev/null 2>&1; echo $?)
         if [ $status -eq 0 ]; then
           git push
         elif [ $status -eq 123 ]; then
@@ -86,13 +86,14 @@ jobs:
         cmd: 'jq .version package.json --raw-output --exit-status'
 
     - name: Increment semver patch number
-      id: new-version
-      run: curl https://raw.githubusercontent.com/rszyma/shell-semver/master/increment_version.sh -sSf | sh -s -- -p ${{ steps.version.outputs.value }}
+      id: new_version
+      run: |
+        echo "value=$(curl https://raw.githubusercontent.com/rszyma/shell-semver/master/increment_version.sh -sSf | bash -s -- -p ${{ steps.version.outputs.value }})" >> $GITHUB_OUTPUT
 
     - name: Setup - vsce
       run: yarn global add vsce
 
     - name: Build and publish
-      run: just pre_release ${{ steps.new-version.outputs.value }}
+      run: just pre_release ${{ steps.new_version.outputs.value }}
       env:
         VSCE_PAT: ${{ secrets.VSCE_ACCESS_TOKEN }}