Command Not Found Rebuild #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Command Not Found Rebuild | |
on: | |
schedule: | |
- cron: "0 0 * * 0" # Runs weekly | |
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@v4 | |
with: | |
fetch-depth: 1 | |
token: ${{ secrets.TERMUXBOT2_TOKEN }} | |
persist-credentials: false | |
- name: Revbump main/command-not-found | |
env: | |
GITHUB_TOKEN: ${{ secrets.TERMUXBOT2_TOKEN }} | |
run: | | |
git config --global user.name "Termux Github Actions" | |
git config --global user.email "contact@termux.dev" | |
./scripts/bin/revbump command-not-found | |
git add . | |
git commit -m "rebuild(main/command-not-found): to update database" | |
git push |