Skip to content

Commit

Permalink
fix: Correctly push submodule updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lj3954 committed Aug 30, 2024
1 parent 3ce585d commit b695b2f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/update_submodule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update submodule

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

jobs:
Expand All @@ -13,13 +13,15 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'recursive'
submodules: "recursive"

- name: Update submodule
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config user.name "github-actions[bot]"
git submodule update --remote --recursive
git add .
git commit -m "Update linutil submodule" || exit 0
git push
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update linutil submodule
file_pattern: "linutil/**"

0 comments on commit b695b2f

Please sign in to comment.