Skip to content

Commit

Permalink
Create module.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
harilvfs authored Feb 9, 2025
1 parent 32d7c11 commit bfab6df
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Update Carch Submodule'

on:
push:
paths:
- 'carch/**' # Detects any changes in the carch submodule

jobs:
update-submodule:
runs-on: ubuntu-latest

steps:
- name: Checkout documentation repository
uses: actions/checkout@v3

- 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 # Or any other branch you're using
git pull origin main # Pull latest changes
- name: Commit and push changes to the docs repository
run: |
git add carch
git commit -m "Update carch submodule"
git push origin main # Or the branch you're using

0 comments on commit bfab6df

Please sign in to comment.