Skip to content

Commit

Permalink
Update submodules periodically
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jul 27, 2023
1 parent 09a629b commit 8935bc9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/update_submodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Submodules sync'

on:
workflow_dispatch:
schedule:
# Run once per day
- cron: '0 3 * * *'

jobs:
sync:
name: 'Submodules sync'
runs-on: ubuntu-latest

defaults:
run:
shell: bash

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Git submodule Update
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Add and commit
uses: EndBug/add-and-commit@v9
with:
message: Submodules sync
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "sdw-sosa-ssn"]
path = sdw-sosa-ssn
url = https://github.com/w3c/sdw-sosa-ssn
branch = main

0 comments on commit 8935bc9

Please sign in to comment.