forked from fabricated-world/fable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Added a workflow to automatically update the submodules
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Update Submodules | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'blogposts' | ||
|
||
jobs: | ||
update_submodules: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout main branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: 'main' # Specify the main branch | ||
|
||
- name: Set up Git | ||
run: | | ||
git config --global user.name "Automated Release" | ||
git config --global user.email "[email protected]" | ||
- name: Update submodules | ||
run: | | ||
git submodule update --init --recursive | ||
git submodule update --remote --merge | ||
git add . | ||
git commit -m "🔄 Update submodules" || echo "No changes to commit" | ||
git push origin main |