Skip to content

workflows: main: Update build targets #108

workflows: main: Update build targets

workflows: main: Update build targets #108

Workflow file for this run

name: Upstream
on:
push:
branches:
- main
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 "${USERNAME}"
git config --global user.email "${EMAIL}"
git clone https://"${USERNAME}":"${TOKEN}"@github.com/"${USERNAME}"/releases.git
cd releases
function upstream() { for var in montana-lineageos18-4.9 montana-lineageos19; do git checkout $var; git rebase main; git push -f; done; git checkout main; }
upstream
env:
EMAIL: ${{ secrets.EMAIL }}
TOKEN: ${{ secrets.TOKEN }}
USERNAME: ${{ secrets.USERNAME }}