30 lines
841 B
YAML
30 lines
841 B
YAML
name: Sync Compose Directory
|
|
|
|
on:
|
|
schedule:
|
|
# Runs at 2:00 UTC every day; adjust as needed
|
|
- cron: "0 2 * * *"
|
|
workflow_dispatch: # allows manual trigger
|
|
|
|
jobs:
|
|
sync-compose:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Step 1: Checkout the repo
|
|
- name: Checkout benedikta-ovos
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
|
|
|
- name: Sync compose from ovos-docker
|
|
run: |
|
|
# Make the sync script executable
|
|
chmod +x ./update-sync-ovos-compose.sh
|
|
# Run the script
|
|
./update-sync-ovos-compose.sh
|
|
|
|
- name: Commit & push changes
|
|
uses: EndBug/add-and-commit@998652d28d7702d095d40f52ae42982a80ae8c7d # v9.0.1
|
|
with:
|
|
add: "compose"
|
|
message: "Update compose/ from ovos-docker:dev"
|
|
push: true
|