From 794b5b0f59137901e104f287aa418f8c9e3ca2d0 Mon Sep 17 00:00:00 2001 From: freearhey Date: Tue, 4 May 2021 16:04:20 +0300 Subject: [PATCH] Create update-codes.yml --- .github/workflows/update-codes.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/update-codes.yml diff --git a/.github/workflows/update-codes.yml b/.github/workflows/update-codes.yml new file mode 100644 index 00000000..0b4d14ab --- /dev/null +++ b/.github/workflows/update-codes.yml @@ -0,0 +1,23 @@ +name: update-codes +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' +jobs: + update: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install Dependencies + run: npm install + - name: Update Codes + run: npm run update-codes + - 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 codes" + git pull + git push