2020-12-17 15:36:08 +01:00
|
|
|
name: Package updates
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2020-12-17 22:52:50 +01:00
|
|
|
- cron: '0 */6 * * *'
|
2020-12-17 22:50:16 +01:00
|
|
|
workflow_dispatch:
|
2020-12-17 15:36:08 +01:00
|
|
|
|
|
|
|
jobs:
|
2020-12-17 23:07:12 +01:00
|
|
|
update-packages:
|
2020-12-17 15:36:08 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
|
|
|
uses: actions/checkout@v2
|
2020-12-17 23:07:12 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-12-17 23:26:53 +01:00
|
|
|
token: ${{ secrets.GH_API_KEY }}
|
2020-12-17 15:36:08 +01:00
|
|
|
- name: Process package updates
|
|
|
|
env:
|
|
|
|
GITHUB_API_TOKEN: ${{ secrets.GH_API_KEY }}
|
2020-12-17 21:24:13 +01:00
|
|
|
BUILD_PACKAGES: "true"
|
|
|
|
GIT_COMMIT_PACKAGES: "true"
|
2020-12-17 22:44:44 +01:00
|
|
|
GIT_PUSH_PACKAGES: "true"
|
2020-12-17 15:36:08 +01:00
|
|
|
run: |
|
2020-12-17 21:24:13 +01:00
|
|
|
git config --global user.name "Termux Github Actions"
|
|
|
|
git config --global user.email "leonid.pliushch@gmail.com"
|
2020-12-17 15:36:08 +01:00
|
|
|
bash ./scripts/updates/check-updates.sh
|