Skip to content

Commit

Permalink
ci: track main branch of lima submodule (#162)
Browse files Browse the repository at this point in the history
Issue #, if available:

*Description of changes:*
Track a known good commit main branch of lima submodule vs latest tag.

*Testing done:*
Yes

- [X] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

---------

Signed-off-by: Vishwas Siravara <[email protected]>
  • Loading branch information
vsiravar authored Sep 20, 2023
1 parent 84af4c5 commit 51d2539
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/submodulesync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:
- name: Update sub modules
run: |
git submodule update --remote
(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)
# pin submodule to a commit, https://github.com/lima-vm/lima/commit/b357e260b1a03f0142c63b3e071b784ae66d5d34
(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@v5
Expand Down

0 comments on commit 51d2539

Please sign in to comment.