Skip to content

Commit

Permalink
ci: Add workflow for updating submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Apr 8, 2024
1 parent acdef89 commit cc2741a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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: Submodule update
run: |
git submodule init
git submodule update --remote --merge
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: 'Update submodules'
body: ''
commit-message: 'Update all submodules'
branch: submodules-update
delete-branch: true

0 comments on commit cc2741a

Please sign in to comment.