File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Sync with upstream
2
+
3
+ on :
4
+ schedule :
5
+ - cron : " 0 0 */7 * *"
6
+ workflow_dispatch :
7
+ # push:
8
+ # branches:
9
+ # - feature/native-comp
10
+
11
+ jobs :
12
+ sync :
13
+ name : Sync with upstream
14
+ runs-on : ubuntu-latest
15
+ env :
16
+ upstream_repo : emacs-lsp/lsp-ui
17
+ upstream_branch : master
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ with :
21
+ fetch-depth : 20
22
+ # token: ${{ secrets.PAT }} # needed for trigger other workflow
23
+ token : ${{ secrets.GITHUB_TOKEN }}
24
+ - name : Setup upstream branch
25
+ run : |
26
+ git remote add upstream https://github.com/$upstream_repo.git
27
+ git fetch upstream $upstream_branch --depth=400
28
+ - name : Sync
29
+ run : |
30
+ git config --global user.email "github-actions[bot]"
31
+ git config --global user.name "github-actions[bot]@users.noreply.github.com"
32
+ git rebase --autosquash --autostash upstream/$upstream_branch
33
+ git push origin -f
You can’t perform that action at this time.
0 commit comments