Skip to content

Check for updates on Argon ONE (V2) Pi 4 Script #106

Check for updates on Argon ONE (V2) Pi 4 Script

Check for updates on Argon ONE (V2) Pi 4 Script #106

name: Check for updates on Argon ONE (V2) Pi 4 Script
on:
# Manual Action Trigger
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
workflow_dispatch:
# Trigger Action every Friday at 21:00 UTC
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
schedule:
- cron: '0 21 * * 5'
jobs:
Check_for_update:
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/[email protected]
- name: Create download folder
run: mkdir -p ./download
# https://github.com/marketplace/actions/github-action-for-wget
- name: Github Action for wget (argon1.sh)
uses: wei/[email protected]
with:
args: https://download.argon40.com/argon1.sh -P ./download
- name: Github Action for wget (ar1config.png)
uses: wei/[email protected]
with:
args: http://download.argon40.com/ar1config.png -P ./download
- name: Github Action for wget (ar1uninstall.png)
uses: wei/[email protected]
with:
args: http://download.argon40.com/ar1uninstall.png -P ./download
- name: Github Action for wget (argonone-irconfig.sh)
uses: wei/[email protected]
with:
args: https://download.argon40.com/argonone-irconfig.sh -P ./download
- name: Delete ./source
run: rm -rf ./source
- name: Rename ./download to ./source
run: mv ./download ./source
# https://github.com/marketplace/actions/git-auto-commit
- name: Git Auto Commit
uses: stefanzweifel/[email protected]
with:
commit_message: Automated Change by GitHub Action