2022-03-30 19:37:11 +00:00
|
|
|
name: Submodule Sync
|
|
|
|
on:
|
|
|
|
schedule:
|
2023-08-23 12:13:22 +00:00
|
|
|
# Runs "At minute 15 past every 4th hour." (see https://crontab.guru)
|
2022-03-30 19:37:11 +00:00
|
|
|
- cron: "15 */4 * * *"
|
|
|
|
workflow_dispatch: ~
|
|
|
|
jobs:
|
|
|
|
submodule-sync:
|
2022-03-30 20:07:10 +00:00
|
|
|
name: Submodule update
|
2022-03-30 19:37:11 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-30 20:07:10 +00:00
|
|
|
- name: Checkout Code
|
2023-02-22 00:10:39 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-07-13 22:17:28 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
token: ${{ secrets.GH_ACCESS_TOKEN }}
|
2022-07-13 22:13:17 +00:00
|
|
|
- name: Commit
|
|
|
|
run: |
|
|
|
|
git config user.email "actions@github.com"
|
|
|
|
git config user.name "github-actions"
|
|
|
|
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"
|