forked from melpa/melpa
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 978 Bytes
/
merge-upstream.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Update the recipes
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * 5'
jobs:
pr:
runs-on: ubuntu-latest
strategy:
matrix:
base_ref:
- akirak
upstream:
- 'https://github.com/melpa/melpa.git'
upstream_branch:
- 'master'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
sparse-checkout: '.'
ref: ${{ matrix.base_ref }}
- name: Fetch the upstream
run: |
git remote add upstream ${{ matrix.upstream }}
git fetch upstream ${{ matrix.upstream_branch }}
- name: Cherry pick commits
run: |
git config --add user.name 'github-actions[bot]'
git config --add user.email '6270544+github-actions[bot]@users.noreply.github.com'
git rebase -s ort -X theirs upstream/${{ matrix.upstream_branch }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
force: true