Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Commit

Permalink
Merge-upstream: fix merging problems
Browse files Browse the repository at this point in the history
fix: #88
  • Loading branch information
KFERMercer authored Oct 25, 2021
1 parent 5fbe77f commit f8c275d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions merge-upstream.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This is free software, lisence use MIT.
#
# Copyright (C) 2020 KFERMercer <KFER.Mercer@gmail.com>
# Copyright (C) 2021 KFERMercer <KFER.Mercer@gmail.com>
#
# <https://github.com/KFERMercer/OpenWrt-CI>
#
Expand All @@ -10,7 +10,7 @@ name: Merge-upstream

on:
push:
branches:
branches:
- master
schedule:
- cron: 30 19 * * *
Expand All @@ -30,10 +30,12 @@ jobs:
fetch-depth: 0
lfs: true

- name: Set git identity
- name: Set git config
run : |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global pull.rebase false
git config --global --list
- name: Load upstream commits
run: git pull https://github.com/coolsnowwolf/lede.git --log --no-commit
Expand All @@ -43,7 +45,7 @@ jobs:
if [ -f ./.git/MERGE_MSG ]; then
mkdir ./tmp && cp ./.git/MERGE_MSG ./tmp/message
sed -i "1c [bot] AutoMerging: merge all upstream's changes:" ./tmp/message
sed -i '/^\#.*/d' ./tmp/message
# sed -i '/^\#.*/d' ./tmp/message
git commit --file="./tmp/message"
else
echo "There is no merge commits."
Expand Down

0 comments on commit f8c275d

Please sign in to comment.