mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
36 lines
882 B
YAML
36 lines
882 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
|
|
container:
|
|
image: registry.fedoraproject.org/fedora:37
|
|
options: --cap-add=SYS_ADMIN --privileged
|
|
steps:
|
|
- name: Install packages
|
|
run: dnf install -y rpmdevtools git python
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Run Update
|
|
run: bash ./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"
|
|
git push -u origin main
|
|
fi
|