forked from JarlPenguin/releases
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 920 Bytes
/
main.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
name: Upstream
on:
push:
branches:
- master
jobs:
build:
name: Automatic upstream
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install git
- name: Upstream branches
run: |
git config --global user.name "${GITHUB_USER}"
git config --global user.email "${GITHUB_EMAIL}"
git clone https://"${GITHUB_USER}":"${GITHUB_TOKEN}"@github.com/"${GITHUB_USER}"/releases.git
cd releases
function upstream() { for var in cedric-los18 montana-aosp11 montana-aosp12 montana-los18 montana-los18-4.9 river-los17 river-pe12; do git checkout $var; git rebase master; git push -f; done; git checkout master; }
upstream
env:
GITHUB_EMAIL: ${{ secrets.GITHUB_EMAIL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_KEY }}
GITHUB_USER: ${{ secrets.GITHUB_USER }}