diff --git a/.github/workflows/dependencies-ci.yml b/.github/workflows/dependencies-ci.yml index 35365eba2f..eb48488281 100644 --- a/.github/workflows/dependencies-ci.yml +++ b/.github/workflows/dependencies-ci.yml @@ -147,10 +147,10 @@ jobs: - name: Get entsoe version run : echo "ENTSOE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV - #BUILD DYNAWO + #BUILD OPENRAO - name: Check for SNAPSHOT branch run: | - SNAPSHOT_BRANCH=$(git ls-remote --heads https://github.com/powsybl/powsybl-dynawo.git | grep 'refs/heads/.*SNAPSHOT' | sed 's/.*refs\/heads\///') + SNAPSHOT_BRANCH=$(git ls-remote --heads https://github.com/powsybl/powsybl-open-rao.git | grep 'refs/heads/.*SNAPSHOT' | sed 's/.*refs\/heads\///') if [ -n "$SNAPSHOT_BRANCH" ]; then echo "SNAPSHOT VERSION EXIST: $SNAPSHOT_BRANCH" echo "SNAPSHOT_EXIST=true" >> $GITHUB_ENV @@ -160,24 +160,30 @@ jobs: echo "SNAPSHOT_EXIST=false" >> $GITHUB_ENV echo "SNAPSHOT_BRANCH=main" >> $GITHUB_ENV fi - - name: Checkout dynawo-sources + - name: Checkout open-rao-sources uses: actions/checkout@v4 with: - repository: powsybl/powsybl-dynawo + repository: powsybl/powsybl-open-rao ref: ${{ env.SNAPSHOT_BRANCH }} - name: Change core version run : mvn versions:set-property -Dproperty=powsybl-core.version -DnewVersion=$CORE_VERSION -DgenerateBackupPoms=false + - name: Change entsoe version + run : mvn versions:set-property -Dproperty=powsybl.entsoe.version -DnewVersion=$ENTSOE_VERSION -DgenerateBackupPoms=false + - name: Change open-loadflow version + run : mvn versions:set-property -Dproperty=powsybl.openloadflow.version -DnewVersion=$LOADFLOW_VERSION-DgenerateBackupPoms=false - name: Build with Maven run: | cat pom.xml || true mvn --batch-mode clean install -DskipTests - - name: Get dynawo version - run : echo "DYNAWO_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV + - name: Get open-rao version + run : echo "OPENRAO_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV - #BUILD OPENRAO + + + #BUILD DYNAWO - name: Check for SNAPSHOT branch run: | - SNAPSHOT_BRANCH=$(git ls-remote --heads https://github.com/powsybl/powsybl-open-rao.git | grep 'refs/heads/.*SNAPSHOT' | sed 's/.*refs\/heads\///') + SNAPSHOT_BRANCH=$(git ls-remote --heads https://github.com/powsybl/powsybl-dynawo.git | grep 'refs/heads/.*SNAPSHOT' | sed 's/.*refs\/heads\///') if [ -n "$SNAPSHOT_BRANCH" ]; then echo "SNAPSHOT VERSION EXIST: $SNAPSHOT_BRANCH" echo "SNAPSHOT_EXIST=true" >> $GITHUB_ENV @@ -187,23 +193,20 @@ jobs: echo "SNAPSHOT_EXIST=false" >> $GITHUB_ENV echo "SNAPSHOT_BRANCH=main" >> $GITHUB_ENV fi - - name: Checkout open-rao-sources + - name: Checkout dynawo-sources uses: actions/checkout@v4 with: - repository: powsybl/powsybl-open-rao + repository: powsybl/powsybl-dynawo ref: ${{ env.SNAPSHOT_BRANCH }} - name: Change core version run : mvn versions:set-property -Dproperty=powsybl-core.version -DnewVersion=$CORE_VERSION -DgenerateBackupPoms=false - - name: Change entsoe version - run : mvn versions:set-property -Dproperty=powsybl.entsoe.version -DnewVersion=$ENTSOE_VERSION -DgenerateBackupPoms=false - - name: Change open-loadflow version - run : mvn versions:set-property -Dproperty=powsybl.openloadflow.version -DnewVersion=$LOADFLOW_VERSION-DgenerateBackupPoms=false - name: Build with Maven run: | cat pom.xml || true mvn --batch-mode clean install -DskipTests - - name: Get open-rao version - run : echo "OPENRAO_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV + - name: Get dynawo version + run : echo "DYNAWO_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV + #CHECKOUT_PYPOWSYBL_DEPENCIES - name: Checkout powsybl-depencies