Check Collector Updates #25
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 Collector Updates | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
check-collector: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check if collector is outdated | |
run: | | |
curl -s https://ausi.github.io/respimagelint/collector.js -o /tmp/new-collector.js | |
if ! cmp -s /tmp/new-collector.js public/collector.js; then | |
echo -e "\e[31m🚨 collector.js is outdated\e[0m" | |
exit 1 | |
fi | |
echo -e "\e[32m✅ collector.js is up to date\e[0m" |