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
22# 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.
33
44on :
55 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
88
99jobs :
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-
2110 sync-winget-branch :
2211 runs-on : ubuntu-latest
2312 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
4014 uses : actions/checkout@v4
4115 with :
4216 ref : winget-release-workflow
43- - name : Fetch upstream tags
17+ token : ${{ secrets.GITHUB_TOKEN }}
18+
19+ - name : Add upstream
4420 run : |
4521 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