From 9464fed11b858c0d4fb15038ce9afad74c80d2f3 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 10 Mar 2021 01:20:09 +0300 Subject: [PATCH 1/2] Create auto-update.yml --- .github/workflows/auto-update.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/auto-update.yml diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml new file mode 100644 index 00000000..065d2d0e --- /dev/null +++ b/.github/workflows/auto-update.yml @@ -0,0 +1,37 @@ +name: auto-update +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' +jobs: + format: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install Dependencies + run: npm install + - name: Format Playlists + run: node scripts/format.js + - name: Commit Changes + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git diff-index --quiet HEAD || git commit -m "[Bot] Format playlists" + git push + update-readme: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Update Guide + run: ./run.sh + - name: Commit Changes + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git diff-index --quiet HEAD || git commit -m "[Bot] Update Guide" + git pull + git push From 3f94db60aa312ec91e59ca2f8d0b6b57160cb213 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 10 Mar 2021 01:20:39 +0300 Subject: [PATCH 2/2] Update auto-update.yml --- .github/workflows/auto-update.yml | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 065d2d0e..fc9c598c 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -1,26 +1,8 @@ name: auto-update on: workflow_dispatch: - schedule: - - cron: '0 0 * * *' jobs: - format: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Install Dependencies - run: npm install - - name: Format Playlists - run: node scripts/format.js - - name: Commit Changes - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git add . - git diff-index --quiet HEAD || git commit -m "[Bot] Format playlists" - git push - update-readme: + update-guide: runs-on: ubuntu-latest steps: - name: Checkout