chore(ci): update workflows

This commit is contained in:
2025-03-08 02:27:49 +02:00
parent c119d4c20b
commit 4855e56f3c
7 changed files with 40 additions and 13 deletions

View File

@@ -1,29 +1,35 @@
---
# yaml-language-server: https://json.schemastore.org/github-workflow.json
name: Update submodules
on:
schedule:
# At 04:00 on Monday and Thursday.
- cron: "0 4 * * 1,4"
workflow_dispatch:
permissions: read-all
jobs:
update-submodules:
permissions:
contents: write
issues: write
pull-requests: write
runs-on: self-hosted
permissions: write-all
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 2
token: ${{secrets.GITHUB_TOKEN}}
- name: Config Git User
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Update submodules
run: |
git submodule sync