Skip to content

Check update

Check update #86

Workflow file for this run

name: Check update
on:
schedule:
- cron: '53 7 * * *'
#push:
# branches:
# - main
workflow_dispatch:
jobs:
update:
concurrency: nvchecker
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- uses: arch4edu/cactus/actions/upgrade-archlinux@main
- name: Install runtime dependencies
run: pacman -S --noconfirm --needed jq nvchecker python-packaging python-pygithub python-toml python-yaml
- uses: actions/checkout@master
- name: Run nvchecker
run: |
sed "s/GITHUB_TOKEN/${{ secrets._GITHUB_TOKEN }}/" -i config/keyfile.toml
sed 's/#keyfile/keyfile/' -i config/__config__.toml
python nvchecker.py
set -o pipefail
nvchecker --logger both -c nvchecker.toml > nvchecker.log
- name: Process updates
run: |
python process-update.py
[ -f nvtake.txt ] && nvtake -c nvchecker.toml $(cat nvtake.txt)