From b4ad994f95643ca54e27b3a3c90be983e66ff13f Mon Sep 17 00:00:00 2001 From: tom5079 Date: Mon, 3 Jan 2022 15:36:00 +0900 Subject: [PATCH] Create watchdiff.yml --- .github/workflows/watchdiff.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/watchdiff.yml diff --git a/.github/workflows/watchdiff.yml b/.github/workflows/watchdiff.yml new file mode 100644 index 00000000..2fddb732 --- /dev/null +++ b/.github/workflows/watchdiff.yml @@ -0,0 +1,23 @@ +# This is a basic workflow that is manually triggered + +name: Watch hitomi.la file changes + +on: + schedule: + - cron: "*/10 * * * *" + +jobs: + watchdiff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: watchdiff + - name: Download files + run: ./fetch.sh + - name: Commit and Push + id: push + run: | + git config --global user.name 'Watchdiff bot' + git config --global user.email 'tom5079@naver.com' + { git add . && git commit -m "File update" && git push; } | tail -1 | grep -q "nothing to commit"