Check update #540
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: 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 git jq nvchecker python-lxml python-packaging python-pygithub python-toml python-typing_extensions 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) |