-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
890b9f8
commit b7c1265
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|