Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix repository url, change executor to native powershell #19

Merged
merged 1 commit into from
May 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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