fdedcf53bb
Basic checks / Compilation, Unit and Integration Tests (push) Has been cancelled
Basic checks / Hygiene and Layering (push) Has been cancelled
Basic checks / Warm up node modules cache (push) Has been cancelled
Check Format and Lint / lint-and-format (push) Has been cancelled
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Update submodules
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Pull & update submodules recursively
|
|
run: |
|
|
git submodule update --init --recursive
|
|
git submodule update --recursive --remote
|
|
|
|
- name: Commit changes
|
|
run: |
|
|
git config --global user.name "github-actions"
|
|
git config --global user.email "github-actions@github.com"
|
|
git checkout -b update-submodules
|
|
git add .
|
|
git commit -m "Update submodules"
|
|
|
|
- name: Push changes
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
git push --set-upstream origin update-submodules
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v5
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: update-submodules
|
|
title: "Update submodules"
|
|
body: "Automated update of submodules."
|
|
draft: false
|
|
base: main
|