2022-08-26 11:26:15 +02:00
|
|
|
name: Check for updates on Argon ONE (V2) Pi 4 Script
|
|
|
|
|
|
|
|
on:
|
2022-08-26 14:19:45 +02:00
|
|
|
# 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
|
2022-08-26 11:26:15 +02:00
|
|
|
schedule:
|
2022-08-26 14:19:45 +02:00
|
|
|
- cron: '0 21 * * 5'
|
2022-08-26 11:26:15 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
Check_for_update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
# https://github.com/marketplace/actions/checkout
|
|
|
|
- name: Checkout
|
2023-06-19 12:37:56 +02:00
|
|
|
uses: actions/checkout@v3.5.3
|
2022-08-26 11:26:15 +02:00
|
|
|
- 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/wget@v1.1.1
|
|
|
|
with:
|
|
|
|
args: https://download.argon40.com/argon1.sh -P ./download
|
|
|
|
- name: Github Action for wget (ar1config.png)
|
|
|
|
uses: wei/wget@v1.1.1
|
|
|
|
with:
|
|
|
|
args: http://download.argon40.com/ar1config.png -P ./download
|
|
|
|
- name: Github Action for wget (ar1uninstall.png)
|
|
|
|
uses: wei/wget@v1.1.1
|
|
|
|
with:
|
|
|
|
args: http://download.argon40.com/ar1uninstall.png -P ./download
|
|
|
|
- name: Github Action for wget (argonone-irconfig.sh)
|
|
|
|
uses: wei/wget@v1.1.1
|
|
|
|
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
|
2023-01-27 12:39:52 +01:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4.16.0
|
2022-08-26 11:26:15 +02:00
|
|
|
with:
|
2023-06-19 12:37:56 +02:00
|
|
|
commit_message: Automated Change by GitHub Action
|