Skip to content

Commit d7ab954

Browse files
chore(gha): configure echo mirror for Maven dependency resolution
1 parent 6c9d2fb commit d7ab954

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
distribution: 'temurin'
3333
java-version: '11'
3434

35+
- name: Configure echo mirror for dependency resolution
36+
run: |
37+
sed -i 's|</settings>|<mirrors><mirror><id>echo</id><mirrorOf>central</mirrorOf><url>https://maven.echohq.com</url></mirror></mirrors></settings>|' ~/.m2/settings.xml
38+
3539
- name: Check existence of cx-linux binary
3640
run: |
3741
if [ ! -f "src/main/resources/cx-linux" ]; then

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ jobs:
125125
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
126126
gpg-passphrase: MAVEN_GPG_PASSPHRASE
127127

128+
- name: Configure echo mirror for dependency resolution
129+
run: |
130+
sed -i 's|</settings>|<mirrors><mirror><id>echo</id><mirrorOf>central</mirrorOf><url>https://maven.echohq.com</url></mirror></mirrors></settings>|' ~/.m2/settings.xml
131+
128132
- name: Update the POM version.
129133
run: mvn -B versions:set -DnewVersion="$RELEASE_VERSION" --file pom.xml -DskipTests
130134

0 commit comments

Comments
 (0)