File tree 2 files changed +36
-3
lines changed 2 files changed +36
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Automerge
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ schedule :
6
+ # You can setup schedule here
7
+ - cron : ' 30 5,17 * * *'
8
+
9
+ env :
10
+ MY_REPO : https://git-elliot:${{secrets.GITHUB_TOKEN}}@github.com/osociety/vernet.git
11
+
12
+ MY_BRANCH : dev
13
+
14
+ MASTER_REPO : https://github.com/osociety/vernet.git
15
+
16
+ MASTER_BRANCH : main
17
+
18
+ jobs :
19
+ merge :
20
+ runs-on : ubuntu-latest
21
+
22
+ steps :
23
+ - name : Merge with dev
24
+ run : |
25
+ git clone ${{env.MY_REPO}} -b ${{env.MY_BRANCH}} tmp
26
+ cd tmp
27
+ git config user.name "Automerge Bot"
28
+ git config user.email "bot@example.com"
29
+ git config pull.rebase false
30
+ git pull ${{env.MASTER_REPO}} ${{env.MASTER_BRANCH}}
31
+ git push
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ jobs:
116
116
type : ' zip'
117
117
filename : Vernet-${{github.ref_name}}-macos.zip
118
118
directory : build/macos/Build/Products/Release/
119
+ path : vernet.app
119
120
120
121
- name : macOS Release
121
122
uses : softprops/action-gh-release@v1
@@ -150,13 +151,14 @@ jobs:
150
151
with :
151
152
type : ' zip'
152
153
filename : Vernet-${{github.ref_name}}-windows.zip
153
- directory : build/windows/runner/Release
154
+ directory : build/windows/x64/runner/Release/
155
+ path : vernet.exe
154
156
155
- - name : macOS Release
157
+ - name : Windows Release
156
158
uses : softprops/action-gh-release@v1
157
159
if : startsWith(github.ref, 'refs/tags/')
158
160
env :
159
161
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
160
162
with :
161
- files : build/windows/runner/Release/Vernet-${{github.ref_name}}-windows.zip
163
+ files : build/windows/x64/ runner/Release/Vernet-${{github.ref_name}}-windows.zip
162
164
You can’t perform that action at this time.
0 commit comments