latest version #1562
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: latest version | |
on: | |
schedule: | |
- cron: '20 1 * * *' | |
push: | |
branches: | |
- master | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get remote package data | |
uses: wei/curl@master | |
with: | |
args: --silent "https://pkgs.alpinelinux.org/package/edge/community/x86_64/tor" --output package_data.html | |
- name: Check remote version with local | |
run: | | |
grep -A 3 -i version package_data.html | sed -E 's#.*>([^>-]+).*</strong></a>#\1#g' | tail -1 | grep -q $(cat VERSION) |