From 4a2e94162f9c71b4fd00488aace9d65235140de4 Mon Sep 17 00:00:00 2001 From: Fabian Beuke Date: Mon, 7 Oct 2024 01:23:52 +0000 Subject: [PATCH] Merge pull request #9 from davidhcefx/patch-3 --- .github/workflows/fetch.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/fetch.yml diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml new file mode 100644 index 000000000..c2c1ad4ae --- /dev/null +++ b/.github/workflows/fetch.yml @@ -0,0 +1,27 @@ +name: Fetch-upstream +on: + schedule: + - cron: '0 0 * * 1' + workflow_dispatch: + +jobs: + fetch: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: '5' + + - name: Fetch upstream (dirty hacks) + run: | + mv .github .github~ # hide it from git + git reset --hard HEAD~3 + git pull git://git.savannah.gnu.org/nano.git + mv .github~ .github + + - name: Commit this script + run: | + git add . + git -c user.email='mail@beuke.org' -c user.name='Fabian Beuke' commit \ + -m 'Merge pull request #9 from davidhcefx/patch-3' + git push --force