From a44e87237407302ef129c97c655771624c7589aa Mon Sep 17 00:00:00 2001 From: Vishwas Siravara Date: Wed, 20 Sep 2023 13:25:33 -0700 Subject: [PATCH] Update submodulesync.yaml --- .github/workflows/submodulesync.yaml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/submodulesync.yaml b/.github/workflows/submodulesync.yaml index 86950b5..cdd9f04 100644 --- a/.github/workflows/submodulesync.yaml +++ b/.github/workflows/submodulesync.yaml @@ -1,21 +1,35 @@ name: Sync Submodules on: + schedule: + - cron: '0 9 * * 1' workflow_dispatch: + jobs: update: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive token: ${{ secrets.GITHUB_TOKEN }} - name: Update sub modules - run: git submodule update --init --recursive --remote + run: | + git submodule update --remote + # pin submodule to a commit, https://github.com/lima-vm/lima/commit/b357e260b1a03f0142c63b3e071b784ae66d5d34 + (cd src/lima && git remote -v) + (cd src/lima && git checkout b357e260b1a03f0142c63b3e071b784ae66d5d34) + # TODO: Track back release once lima has v0.18.0 + # (cd src/lima && git fetch --tags) + # TAG=`cd src/lima && git describe --tags $(git rev-list --tags --max-count=1)` + # echo "Pulling changes from release: $TAG" + # (cd src/lima && git checkout $TAG) + - name: Create PR - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: bump submodules - title: '[Automated] Bump submodules' + signoff: true + title: 'build(deps): Bump submodules'