Skip to content

Merge-upstream

Merge-upstream #3940

#
# This is free software, lisence use MIT.
#
# Copyright (C) 2019 KFERMercer <[email protected]>
#
# <https://github.com/KFERMercer/OpenWrt-CI>
#
name: Merge-upstream
on:
schedule:
- cron: '10 */8 * * *'
watch:
types:
- 'started'
jobs:
merge:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set git identity
run : |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Load upstream commits
run: |
git remote add upstream https://github.com/coolsnowwolf/lede
git fetch upstream
git rebase upstream/master
- name: Push Commits
env:
DOWNSTREAM_BRANCH: master
run: git push --force-with-lease origin $DOWNSTREAM_BRANCH