From 9874a3fd8df70cb9f1d05652b38639d705cde5ca Mon Sep 17 00:00:00 2001 From: Yaksh Bariya Date: Mon, 7 Feb 2022 17:02:43 +0530 Subject: [PATCH] Revert "Delete Package Update workflow" --- .github/workflows/package_updates.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 000000000..0a048f9aa --- /dev/null +++ b/.github/workflows/package_updates.yml @@ -0,0 +1,27 @@ +name: Package updates + +on: + schedule: + - cron: '0 */6 * * *' + workflow_dispatch: + +jobs: + update-packages: + if: github.repository == 'termux/termux-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 "contact@termux.com" + bash ./scripts/bin/update-packages