This repository was archived by the owner on Jan 2, 2025. It is now read-only.
File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,17 @@ jobs:
22
22
run : |
23
23
cd go_spammer
24
24
go build -o spammer.dll -buildmode=c-shared main.go
25
- mv spammer.dll ../shared/spammer.dll
25
+ if (Test-Path ../shared/spammer.dll) { Remove-Item ../shared/spammer.dll }
26
+ Move-Item spammer.dll ../shared/spammer.dll
27
+ shell : pwsh
26
28
27
- - name : Check for changes and commit
29
+ - name : Configure Git
28
30
run : |
29
- git config --global user.email "your-email@example .com"
31
+ git config --global user.email "lmy615730@gmail .com"
30
32
git config --global user.name "GitHub Actions"
33
+
34
+ - name : Check for changes and commit
35
+ run : |
31
36
git diff --exit-code || (git add shared/spammer.dll && git commit -m "Add built spammer.dll for Windows" && git push)
32
37
env :
33
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -52,12 +57,16 @@ jobs:
52
57
run : |
53
58
cd go_spammer
54
59
go build -o spammer.so -buildmode=c-shared main.go
60
+ if [ -f ../shared/spammer.so ]; then rm ../shared/spammer.so; fi
55
61
mv spammer.so ../shared/spammer.so
56
62
57
- - name : Check for changes and commit
63
+ - name : Configure Git
58
64
run : |
59
- git config --global user.email "your-email@example .com"
65
+ git config --global user.email "lmy615730@gmail .com"
60
66
git config --global user.name "GitHub Actions"
67
+
68
+ - name : Check for changes and commit
69
+ run : |
61
70
git diff --exit-code || (git add shared/spammer.so && git commit -m "Add built spammer.so for Linux" && git push)
62
71
env :
63
72
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments