mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
37 lines
840 B
YAML
37 lines
840 B
YAML
# for each folder in ultramarine/
|
|
# if there is chkupdate.py
|
|
# run it every 2 hours
|
|
name: Automatically check for updates
|
|
on:
|
|
schedule:
|
|
- cron: '0 */2 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
get-chkupdate-scripts:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
- run: git fetch
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Run Update
|
|
run: ./update.sh
|
|
|
|
- name: Save
|
|
run: |
|
|
if [[ `git status --porcelain` ]]; then
|
|
git config user.name "Package Update Checker"
|
|
git config user.email "<>"
|
|
git commit -a -m "Automatic Update by chkupdate.py"
|
|
git push -u origin master
|
|
fi
|