Skip to content

feat: Github Action to update Git Submodules #1

feat: Github Action to update Git Submodules

feat: Github Action to update Git Submodules #1

Workflow file for this run

name: Synchronize Git Submodules
on:
push:
branches: [main]
schedule:
- cron: '30 5 * * *'
workflow_dispatch:
pull_request:
jobs:
submodule-sync:
name: Synchronize the git submodule
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- uses: dtolnay/rust-toolchain@stable
- name: Update Submodule
run: just source && just bind
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.PAT }}
commit-message: Update Submodules
signoff: false
branch: update-submodules
delete-branch: true
title: '[BOT] Update Submodules'
body: 'update submodules'
labels: |
A-submodules
C-bot
assignees: refcell
reviewers: refcell
draft: false