From 8ca3ead5bec779a003d643ff6f73e3872e8e9541 Mon Sep 17 00:00:00 2001 From: anuveyatsu Date: Sun, 22 Mar 2020 20:58:36 +0600 Subject: [PATCH] [gh actions][s]: update the data automatically and push to github. --- .github/workflows/actions.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..b191e82 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,27 @@ +on: + push: + branches: + - feature/auto-update-data + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Build the data and create local changes + uses: actions/setup-python@v1 + with: + python-version: '3.6.2' + architecture: x64 + - run: | + pip install -r requirements.txt + python process.py + - name: Commit files + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -m "Daily auto-update of the data" -a + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }}