Update submodules #106
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: '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" |