Package updates #1090
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: Package updates | |
on: | |
schedule: | |
- cron: "0 */6 * * *" | |
workflow_dispatch: | |
inputs: | |
packages: | |
description: "A space-seperated list of packages to update. Defaults to all packages" | |
default: "@all" | |
required: false | |
permissions: {} # none | |
jobs: | |
update-packages: | |
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: 0 | |
token: ${{ secrets.TERMUXBOT2_TOKEN }} | |
- name: Process package updates | |
env: | |
GITHUB_TOKEN: ${{ secrets.TERMUXBOT2_TOKEN }} | |
BUILD_PACKAGES: "true" | |
GIT_COMMIT_PACKAGES: "true" | |
GIT_PUSH_PACKAGES: "true" | |
run: | | |
git config --global user.name "Termux Github Actions" | |
git config --global user.email "[email protected]" | |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then | |
./scripts/bin/update-packages ${{ github.event.inputs.packages }} | |
else | |
./scripts/bin/update-packages "@all" | |
fi |