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