Merge-upstream #3940
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
# | |
# 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 |