-
-
Notifications
You must be signed in to change notification settings - Fork 4k
33 lines (29 loc) · 914 Bytes
/
command_not_found.yml
File metadata and controls
33 lines (29 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Command Not Found Rebuild
on:
schedule:
- cron: "0 4 * * 0" # Runs at 04:00am UTC 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-slim
steps:
- name: Clone repository
uses: actions/checkout@v6
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