Skip to content

Commit

Permalink
ci: fix repository url, change executor to native powershell (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmacha authored May 19, 2024
1 parent b759bb3 commit e60e6e7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
git remote set-url origin [email protected]:SilverOreTeam:zBassMusic.git
git remote set-url origin [email protected]: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
Expand Down

0 comments on commit e60e6e7

Please sign in to comment.