Files
packages/.github/workflows/update.yml
T
2022-10-19 12:14:22 +08:00

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