Create Update_Submodules.yml

main
PJ568 8 months ago committed by GitHub
parent 149c7dae4b
commit 8df6a3d16c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,32 @@
name: Update Submodules
on:
workflow_dispatch:
jobs:
update-submodules:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: true
fetch-depth: 0
- name: Update Submodules
run: |
git submodule update --remote --merge
- name: Commit changes
run: |
git config user.name "GitHub Actions"
git config user.email "actions@example.com"
git add .
git commit -m "Update submodules" || echo "No changes to commit"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
Loading…
Cancel
Save