ci(command_not_found): auto-rebuild command-not-found weekly

Should hopefully keep the database up to date
This commit is contained in:
Yaksh Bariya 2023-01-13 19:40:30 +05:30
parent 82e222eca7
commit 3db2853959
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 32 additions and 0 deletions

32
.github/workflows/command_not_found.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Command Not Found Rebuid
on:
schedule:
- cron: "0 0 12 ? * SUN *" # Runs every Sunday
workflow_dispatch:
permissions: {} # none
jobs:
rebuild-command-not-found:
permissions:
issues: write
contents: write
if: github.repository == 'termux/termux-packages'
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 1
token: ${{ secrets.GH_API_KEY }}
- name: Process package updates
env:
GITHUB_TOKEN: ${{ secrets.GH_API_KEY }}
run: |
git config --global user.name "Termux Github Actions"
git config --global user.email "contact@termux.dev"
./scripts/bin/revbump command-not-found
git commit -m "rebuild(main/command-not-found): to update database"
git push