Skip to content

Commit 9ada3a8

Browse files
authored
Update build.yml
1 parent c046495 commit 9ada3a8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,17 @@ jobs:
107107

108108
- name: Push to main
109109
run: |
110-
cp ./ophirofox/ophirofox.user.js . || { echo "File not found!"; exit 1; }
111-
ls -la
110+
cp ./ophirofox/ophirofox.user.js .
112111
git config user.name github-actions
113112
git config user.email [email protected]
114113
git add ophirofox.user.js
115-
git commit -m "Release from Ophirofox v${{ env.OPHIROFOX_VERSION }}"
116-
git push
117-
114+
if git diff --staged --quiet; then
115+
echo "No changes to commit"
116+
else
117+
git commit -m "Release from Ophirofox v${{ env.OPHIROFOX_VERSION }}"
118+
git push
119+
fi
120+
118121
- name: Release
119122
uses: softprops/action-gh-release@v1
120123
with:

0 commit comments

Comments
 (0)