From da15c072851aaea35246f02f4f8e929612cb2ea0 Mon Sep 17 00:00:00 2001 From: Piotr Macha Date: Sun, 19 May 2024 03:05:48 +0200 Subject: [PATCH] ci: fix repository url, change executor to native powershell --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d81207..ae29c96 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,20 +68,20 @@ jobs: ssh-private-key: ${{ secrets.SSH_KEY }} - name: Commit version change if: ${{ inputs.push-version-commit == true }} - shell: bash run: | git config --global user.name "Nekobot" git config --global user.email "nekobot-service.noreply@silveroreteam.pl" - git remote set-url origin git@github.com:SilverOreTeam:zBassMusic.git + git remote set-url origin git@github.com:Silver-Ore-Team/zBassMusic.git git fetch --all git checkout ${{ inputs.push-version-branch }} - if [ -z "$(git status -s)" ]; then - echo "No changes to commit" - else + $changes = $(git status -s) + if ($changes) { git add CMakeLists.txt git commit -m "[skip ci] set project version to ${{ inputs.project-version }}" - git push -u origin ${{ inputs.push-version-branch }} - fi + git push origin ${{ inputs.push-version-branch }} + } else { + echo "No changes to commit" + } - name: CMake Configure run: cmake --preset ${{ inputs.cmake-preset }} - name: Ninja Build