File tree Expand file tree Collapse file tree 1 file changed +18
-34
lines changed Expand file tree Collapse file tree 1 file changed +18
-34
lines changed Original file line number Diff line number Diff line change 1
- name : Sync Fork with Upstream
1
+ name : Sync winget-release-workflow fork branch with upstream master
2
2
# Default branch set to winget-release-workflow rather than master so action can run, and changes only occur in that branch so master is synced.
3
3
4
4
on :
5
5
schedule :
6
- - cron : ' 15 * * * *' # daily at 03:00 UTC
7
- workflow_dispatch :
6
+ - cron : ' 0 3 * * *' # once per day at 03:00 UTC
7
+ workflow_dispatch : # manual trigger
8
8
9
9
jobs :
10
- sync-master :
11
- runs-on : ubuntu-latest
12
- steps :
13
- -
uses :
tgymnich/[email protected]
14
- with :
15
- owner : libvips
16
- repo : build-win64-mxe
17
- base : master
18
- head : master
19
- merge_method : merge
20
-
21
10
sync-winget-branch :
22
11
runs-on : ubuntu-latest
23
12
steps :
24
- -
uses :
tgymnich/[email protected]
25
- with :
26
- owner : libvips
27
- repo : build-win64-mxe
28
- base : master
29
- head : winget-release-workflow
30
- merge_method : merge
31
- auto_approve : true
32
- auto_merge : true
33
- ignore_fail : false
34
-
35
- sync-tags :
36
- runs-on : ubuntu-latest
37
- needs : [sync-master, sync-winget-branch]
38
- steps :
39
- - name : Checkout winget-release-workflow
13
+ - name : Checkout fork
40
14
uses : actions/checkout@v4
41
15
with :
42
16
ref : winget-release-workflow
43
- - name : Fetch upstream tags
17
+ token : ${{ secrets.GITHUB_TOKEN }}
18
+
19
+ - name : Add upstream
44
20
run : |
45
21
git remote add upstream https://github.com/libvips/build-win64-mxe.git || true
46
- git fetch upstream --tags
47
- - name : Push tags to fork
48
- run : git push origin --tags
22
+ git fetch upstream master --tags
23
+
24
+ - name : Merge upstream master into winget-release-workflow
25
+ run : |
26
+ git checkout winget-release-workflow
27
+ git merge upstream/master --no-edit || echo "No changes to merge"
28
+
29
+ - name : Push updates
30
+ run : |
31
+ git push origin winget-release-workflow
32
+ git push origin --tags
You can’t perform that action at this time.
0 commit comments