Skip to content

Update submodules

Update submodules #94

name: 'Update submodules'
on:
# Weekly
schedule:
- cron: '0 0 * * 0'
# By manual trigger
workflow_dispatch:
workflow_call:
defaults:
run:
shell: bash
jobs:
update-submodules:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.IDENTUS_CI }}
submodules: true
fetch-depth: 0
- name: Update submodules
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
id: import_gpg
with:
gpg_private_key: ${{ secrets.HYP_BOT_GPG_PRIVATE }}
passphrase: ${{ secrets.HYP_BOT_GPG_PASSWORD }}
git_user_signingkey: true
git_commit_gpgsign: true
git_config_global: true
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "feat: update submodules documentation to latest"
commit_user_name: ${{ steps.import_gpg.outputs.name }}
commit_user_email: ${{ steps.import_gpg.outputs.email }}
commit_options: "--no-verify --signoff -S"