From 0324d381b829eea8ca55acd8872cdd61db60f76d Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Wed, 14 Oct 2020 10:02:30 +0200 Subject: [PATCH] CI: Replace deprecated GHA ::set-env and ::add-path https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ --- .github/workflows/benchmark_models.yml | 6 +++--- .github/workflows/parpe_tests.yml | 16 ++++++++-------- .github/workflows/petab_testsuite.yml | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/benchmark_models.yml b/.github/workflows/benchmark_models.yml index 73dcab012..21bdb8520 100644 --- a/.github/workflows/benchmark_models.yml +++ b/.github/workflows/benchmark_models.yml @@ -10,9 +10,9 @@ jobs: steps: - uses: actions/checkout@master - - run: echo "::set-env name=PARPE_BASE::$(pwd)" - - run: echo "::set-env name=PARPE_BUILD::${PARPE_BASE}/build" - - run: echo "::set-env name=AMICI_PATH::${PARPE_BASE}/deps/AMICI/" + - run: echo "PARPE_BASE=$(pwd)" >> $GITHUB_ENV + - run: echo "PARPE_BUILD=${PARPE_BASE}/build" >> $GITHUB_ENV + - run: echo "AMICI_PATH=${PARPE_BASE}/deps/AMICI/" >> $GITHUB_ENV # Build dependencies diff --git a/.github/workflows/parpe_tests.yml b/.github/workflows/parpe_tests.yml index 60a0dfb94..73729cfdb 100644 --- a/.github/workflows/parpe_tests.yml +++ b/.github/workflows/parpe_tests.yml @@ -17,16 +17,16 @@ jobs: - uses: actions/checkout@master - run: git fetch --prune --unshallow - - run: echo "::set-env name=PARPE_BASE::$(pwd)" - - run: echo "::set-env name=PARPE_BUILD::${PARPE_BASE}/build" - - run: echo "::set-env name=AMICI_PATH::${PARPE_BASE}/deps/AMICI/" + - run: echo "PARPE_BASE=$(pwd)" >> $GITHUB_ENV + - run: echo "PARPE_BUILD=${PARPE_BASE}/build" >> $GITHUB_ENV + - run: echo "AMICI_PATH=${PARPE_BASE}/deps/AMICI/" >> $GITHUB_ENV # sonar cloud - - run: echo "::set-env name=SONAR_SCANNER_VERSION::4.2.0.1873" - - run: echo "::set-env name=SONAR_SCANNER_HOME::/root/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux" - - run: echo "::set-env name=SONAR_SCANNER_OPTS::-server" - - run: echo "::add-path::${SONAR_SCANNER_HOME}/bin" - - run: echo "::add-path::/root/.sonar/build-wrapper-linux-x86" + - run: echo "SONAR_SCANNER_VERSION=4.2.0.1873" >> $GITHUB_ENV + - run: echo "SONAR_SCANNER_HOME=/root/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux" >> $GITHUB_ENV + - run: echo "SONAR_SCANNER_OPTS=-server" >> $GITHUB_ENV + - run: echo "${SONAR_SCANNER_HOME}/bin" >> $GITHUB_PATH + - run: echo "/root/.sonar/build-wrapper-linux-x86" >> $GITHUB_PATH - name: Info run: lsb_release -a && printenv diff --git a/.github/workflows/petab_testsuite.yml b/.github/workflows/petab_testsuite.yml index 84f558afe..6c4c7ded0 100644 --- a/.github/workflows/petab_testsuite.yml +++ b/.github/workflows/petab_testsuite.yml @@ -11,9 +11,9 @@ jobs: steps: - uses: actions/checkout@master - - run: echo "::set-env name=PARPE_BASE::$(pwd)" - - run: echo "::set-env name=PARPE_BUILD::${PARPE_BASE}/build" - - run: echo "::set-env name=AMICI_PATH::${PARPE_BASE}/deps/AMICI/" + - run: echo "PARPE_BASE=$(pwd)" >> $GITHUB_ENV + - run: echo "PARPE_BUILD=${PARPE_BASE}/build" >> $GITHUB_ENV + - run: echo "AMICI_PATH=${PARPE_BASE}/deps/AMICI/" >> $GITHUB_ENV # Build dependencies