diff --git a/.github/workflows/dependencies-ci.yml b/.github/workflows/dependencies-ci.yml
index 83365264da..b72dd67073 100644
--- a/.github/workflows/dependencies-ci.yml
+++ b/.github/workflows/dependencies-ci.yml
@@ -80,8 +80,7 @@ jobs:
ref: ${{ env.SNAPSHOT_BRANCH }}
- name: Change core version
run : |
- mvn versions:set-property -Dproperty=powsybl-core.version -DnewVersion=$CORE_VERSION -DgenerateBackupPoms=false
- sed -i 's|.*|'"$CORE_VERSION"'|' pom.xml
+ mvn versions:update-property -Dproperty=powsybl-core.version -DnewVersion=$CORE_VERSION -DallowSnapshots=true
- name: Build with Maven
run: |
cat pom.xml || true