Skip to content

Commit

Permalink
Fix commit and push step
Browse files Browse the repository at this point in the history
  • Loading branch information
FreePhoenix888 committed Dec 18, 2023
1 parent 890b9f8 commit b7c1265
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/os-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@ jobs:
npx --yes bun run ./automation/sync-electron-package-version.ts
- name: Commit and push
run: |
git config --local user.email "[email protected]"
git config --local user.name "FreePhoenix888"
git add electron/package.json
git commit -m "Sync electron package version"
if git diff --exit-code; then
echo "No changes to push."
if [[ $(git status -s) ]]; then
# Changes are present
# Stage all changes
git config --local user.email "[email protected]"
git config --local user.name "FreePhoenix888"
git add electron/package.json
git commit -m "Sync electron package version"
git push origin main
else
git push
# No changes in the working directory
echo "No changes in the working directory."
fi
linux-build:
name: Linux Build
Expand Down

0 comments on commit b7c1265

Please sign in to comment.