feat: Github Action to update Git Submodules #1
Workflow file for this run
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
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 |