Revert "github actions: remove package_updates.yml (automatic updates)"

This reverts commit 468b4d4063.
This commit is contained in:
Leonid Pliushch 2021-06-13 22:21:41 +03:00
parent 0a7eb9d8cb
commit a33bfe8acc
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 26 additions and 0 deletions

26
.github/workflows/package_updates.yml vendored Normal file
View File

@ -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