workflows: main: Update build targets #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |