Skip to content

Commit

Permalink
Create update-submodules.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyOThan authored Aug 7, 2024
1 parent fddbc71 commit c62291a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update submodules

on:
workflow_dispatch:

jobs:
update-submodules:
runs-on: ubuntu-latest

defaults:
run:
shell: bash

steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: true

- name: update
run: |
git checkout -b update-submodules
git submodule update --init --recursive
git submodule update --recursive --remote
- name: commit
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git commit -am "Update submodules"
- name: push
env:
GH_TOKEN: ${{ github.token }}
run: |
git push

0 comments on commit c62291a

Please sign in to comment.