Add code to update instances automatically.

This commit is contained in:
Kavin
2022-11-12 01:56:07 +00:00
parent 9f0c8696d4
commit 70aec514a5
4 changed files with 123 additions and 28 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Update Instance List
on:
schedule:
- cron: "0 0 * * *" # Runs at 00:00 UTC every day
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install requirements
run: pip install -r requirements.txt
- name: Update Instances
run: python update-instances.py
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "Update instances"
add: ".upptimerc.yml"