-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Update submodules | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
# Cron-based action | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# This example triggers the workflow every day at 5:30 and 17:30 UTC | ||
# https://crontab.cronhub.io/ | ||
- cron: '0 * * * *' | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
|
||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: windows-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Check out from repository | ||
uses: actions/checkout@v4 | ||
with: | ||
# repository: {owner}/repo | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Update references | ||
- name: Git Sumbodule Update | ||
run: | | ||
git submodule update --init --force --remote | ||
# Commit | ||
- name: Commit update | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
|