This repository was archived by the owner on Jan 2, 2025. It is now read-only.
File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,11 @@ jobs:
24
24
go build -o spammer.dll -buildmode=c-shared main.go
25
25
mv spammer.dll ../shared/spammer.dll
26
26
27
- - name : Commit and push changes
27
+ - name : Check for changes and commit
28
28
run : |
29
29
git config --global user.email "your-email@example.com"
30
30
git config --global user.name "GitHub Actions"
31
- git add shared/spammer.dll
32
- git commit -m "Add built spammer.dll for Windows"
33
- git push
31
+ git diff --exit-code || (git add shared/spammer.dll && git commit -m "Add built spammer.dll for Windows" && git push)
34
32
env :
35
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
34
@@ -56,12 +54,10 @@ jobs:
56
54
go build -o spammer.so -buildmode=c-shared main.go
57
55
mv spammer.so ../shared/spammer.so
58
56
59
- - name : Commit and push changes
57
+ - name : Check for changes and commit
60
58
run : |
61
59
git config --global user.email "your-email@example.com"
62
60
git config --global user.name "GitHub Actions"
63
- git add shared/spammer.so
64
- git commit -m "Add built spammer.so for Linux"
65
- git push
61
+ git diff --exit-code || (git add shared/spammer.so && git commit -m "Add built spammer.so for Linux" && git push)
66
62
env :
67
63
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments