Skip to content

Commit

Permalink
i'm bad at git
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuah345 committed Apr 29, 2024
1 parent 6312421 commit 7c9cd4f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/submodule-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Send submodule updates to joshuah345.github.io

on:
workflow_dispatch:

push:
branches:
- master

jobs:
update:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
repository: joshuah345/joshuah345.github.io
token: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
submodules: true

- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions - update submodules"
git add --all
git commit -m "Update submodules" || echo "No changes to commit"
git push

0 comments on commit 7c9cd4f

Please sign in to comment.