Skip to content

Commit

Permalink
chore: respect submodule SHA references on submodule init (#2454)
Browse files Browse the repository at this point in the history
* chore: respect submodule SHA references on submodule init

Signed-off-by: Iliya Savov <[email protected]>

* chore: match repository checkout settings accross workflows

Signed-off-by: Iliya Savov <[email protected]>

---------

Signed-off-by: Iliya Savov <[email protected]>
Co-authored-by: Iliya Savov <[email protected]>
  • Loading branch information
2 people authored and ivaylogarnev-limechain committed Aug 22, 2024
1 parent f930c0e commit 202f328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
with:
ref: ${{ github.event.inputs.tag || '' }}
fetch-depth: 0
submodules: recursive

- name: Install Semantic Version Tools
run: |
Expand Down Expand Up @@ -238,6 +239,7 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.event.inputs.tag || '' }}
submodules: recursive

- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
Expand Down Expand Up @@ -274,6 +276,7 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.event.inputs.tag || '' }}
submodules: recursive

- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
Expand Down
7 changes: 1 addition & 6 deletions packages/proto/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ tasks:

"install:submodules":
cmds:
# TODO: How do we support this build step when we update the
# protobufs? Currently, this step results in reseting any protobuf
# updates we may have.
#- git submodule update --init
# using tag --remote in order to always apply the newest proto changes
- git submodule update --init --remote
- git submodule update --init
status:
- test -e src/proto/.git

Expand Down

0 comments on commit 202f328

Please sign in to comment.