From a33bfe8acc209ac73483da251c2f0d419a561b77 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sun, 13 Jun 2021 22:21:41 +0300 Subject: [PATCH] Revert "github actions: remove package_updates.yml (automatic updates)" This reverts commit 468b4d40634fa172f0afd2ce2bd8f411206c5dd9. --- .github/workflows/package_updates.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/package_updates.yml diff --git a/.github/workflows/package_updates.yml b/.github/workflows/package_updates.yml new file mode 100644 index 0000000000..eb718acfc0 --- /dev/null +++ b/.github/workflows/package_updates.yml @@ -0,0 +1,26 @@ +name: Package updates + +on: + schedule: + - cron: '0 */6 * * *' + workflow_dispatch: + +jobs: + update-packages: + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v2 + with: + fetch-depth: 0 + token: ${{ secrets.GH_API_KEY }} + - name: Process package updates + env: + GITHUB_API_TOKEN: ${{ secrets.GH_API_KEY }} + BUILD_PACKAGES: "true" + GIT_COMMIT_PACKAGES: "true" + GIT_PUSH_PACKAGES: "true" + run: | + git config --global user.name "Termux Github Actions" + git config --global user.email "leonid.pliushch@gmail.com" + bash ./scripts/updates/check-updates.sh