Skip to content

Commit

Permalink
Merge pull request #1943 from cdapio/build-fix-cherrypick
Browse files Browse the repository at this point in the history
[🍒] fix github action to recursively update submodules
  • Loading branch information
itsankit-google authored Feb 13, 2025
2 parents f2c5df8 + 4526398 commit 1575d5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ jobs:
)
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
- name: Update Submodules
run: |
git submodule update --init --recursive --remote
- name: Cache
uses: actions/cache@v4
with:
Expand All @@ -48,7 +49,7 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-${{ github.workflow }}
- name: Build with Maven
run: mvn clean test -fae -T 2 -B -V -DcloudBuild -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
run: mvn clean test -fae -T 2 -B -V -Drat.skip -DcloudBuild -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
- name: Archive build artifacts
uses: actions/upload-artifact@v4
if: always()
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ jobs:
- uses: actions/checkout@v4
with:
path: plugin
submodules: 'recursive'
- name: Update Submodules
working-directory: plugin
run: |
git submodule update --init --recursive --remote
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
# Pinned version 2.11.1
if: github.event_name != 'workflow_dispatch' && github.event_name != 'push'
Expand Down

0 comments on commit 1575d5f

Please sign in to comment.