Skip to content

Instantly share code, notes, and snippets.

@jcs090218
Created January 23, 2024 04:40
Show Gist options
  • Select an option

  • Save jcs090218/626ce162eff2cbf928a257647aa201bc to your computer and use it in GitHub Desktop.

Select an option

Save jcs090218/626ce162eff2cbf928a257647aa201bc to your computer and use it in GitHub Desktop.
update_submodules.yml
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@v5
with:
title: 'Update submodules'
body: ''
commit-message: 'Update all submodules'
branch: submodules-update
delete-branch: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment