Skip to content

Commit

Permalink
ci: Add update submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jan 13, 2024
1 parent 94dcb08 commit 37b77f7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/update_submodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Update Submodules

on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

- name: Set git config
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Submodule update
run: |
git submodule init
git submodule update --remote --merge
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PAT }}
title: 'Update submodules'
body: ''
commit-message: 'Update all submodules'
branch: submodules-update
delete-branch: true

0 comments on commit 37b77f7

Please sign in to comment.