Skip to content

Commit

Permalink
add module.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
harilvfs committed Feb 9, 2025
1 parent b9048ff commit 15b2e2c
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/module.yml
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

0 comments on commit 15b2e2c

Please sign in to comment.