From 5a8cf12ea6ebf2bcc94cc24445cd9f548f950659 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Tue, 5 Nov 2024 01:41:32 +0800 Subject: [PATCH] ci: Add workflow to update submodule --- .github/workflows/update_submodules.yml | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/update_submodules.yml diff --git a/.github/workflows/update_submodules.yml b/.github/workflows/update_submodules.yml new file mode 100644 index 0000000..6da84d9 --- /dev/null +++ b/.github/workflows/update_submodules.yml @@ -0,0 +1,33 @@ +name: Update Submodules + +on: + schedule: + - cron: '0 * * * *' + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + fetch-depth: 0 + + - name: Submodule update + run: | + git submodule init + git submodule update --remote --merge + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + title: 'Update submodules' + body: '' + commit-message: 'Update all submodules' + branch: submodules-update + delete-branch: true