Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponchale committed Mar 18, 2024
1 parent 5d69ba9 commit 8597dd6
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/update-submodule.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: (U) 🧰 Update Submodules

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

jobs:
update-submodules:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: "recursive"

- name: configure git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Update Submodules
run: |
git submodule update --remote
git add .
if git diff-index --quiet HEAD --; then
echo "No submodule changes; exiting."
exit 0
fi
git commit -m "[MB bot] Update submodules" -a
git push
name: (U) 🧰 Update Submodules

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

jobs:
update-submodules:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: "recursive"

- name: configure git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Update Submodules
run: |
git submodule update --remote
git add .
if git diff-index --quiet HEAD --; then
echo "No submodule changes; exiting."
exit 0
fi
git commit -m "[MB bot] Update submodules" -a
git push

0 comments on commit 8597dd6

Please sign in to comment.