mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 08:18:54 +00:00
Turns out our CI scripts that git push stuff do use credentials from the checkout script. Revert until we configure scripts to use a token instead. This reverts commit b57505f341cf2f9bfc09b0b19c5b911efb274deb.
34 lines
903 B
YAML
34 lines
903 B
YAML
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 }}
|
|
- 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
|