-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 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,44 @@ | ||
name: 'Update Carch Submodule' | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'carch-x/**' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
actions: read | ||
|
||
jobs: | ||
update-submodule: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout documentation repository | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set Git identity | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
- name: Initialize and update submodules | ||
run: | | ||
git submodule init | ||
git submodule update | ||
- name: Pull latest changes for submodule | ||
run: | | ||
cd carch | ||
git fetch --all | ||
git checkout main | ||
git pull origin main | ||
- name: Commit and push changes to the docs repository | ||
run: | | ||
git add carch | ||
git commit -m "Update carch submodule" | ||
git push origin main |