From ad1ed84a370a08ea8f0cc7a39b42958644e233c9 Mon Sep 17 00:00:00 2001 From: piotradamczyk5 <65554637+piotradamczyk5@users.noreply.github.com> Date: Mon, 19 Oct 2020 12:26:28 +0200 Subject: [PATCH] ci: Update deprecated options ::set-env and ::add-path (#1248) --- .github/workflows/release.yml | 18 +++++++++--------- .github/workflows/release_notes_generation.yml | 4 ++-- .github/workflows/update_dependencies.yml | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aed3a2f76f..45acb222b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,21 +27,21 @@ jobs: - name: Gradle Build flankScripts and add it to PATH run: | ./flank-scripts/bash/buildFlankScripts.sh - echo "::add-path::./flank-scripts/bash" + echo "./flank-scripts/bash" >> $GITHUB_PATH - name: Set env variables run: | - echo "::set-env name=MVN_REVISION::$(echo $GITHUB_SHA)"; + echo "MVN_REVISION=$(echo $GITHUB_SHA)" >> $GITHUB_ENV if [[ $GITHUB_REF == refs/tags/* ]] - then - echo "::set-env name=MVN_VERSION::$(echo ${GITHUB_REF:11})"; - echo "::set-env name=RELEASE_TAG::$(echo ${GITHUB_REF:10})"; - else - echo "::set-env name=RELEASE_TAG::flank_snapshot"; - echo "::set-env name=MVN_VERSION::flank_snapshot"; + then + echo "MVN_VERSION=$(echo ${GITHUB_REF:11})" >> $GITHUB_ENV + echo "RELEASE_TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV + else + echo "RELEASE_TAG=flank_snapshot" >> $GITHUB_ENV + echo "MVN_VERSION=flank_snapshot" >> $GITHUB_ENV git_short_hash=$(git rev-parse --short "$GITHUB_SHA") - echo "::set-env name=GIT_SHORT_HASH::$(echo $git_short_hash)"; + echo "GIT_SHORT_HASH=$(echo $git_short_hash)" >> $GITHUB_ENV fi; - name: Store version variables to file diff --git a/.github/workflows/release_notes_generation.yml b/.github/workflows/release_notes_generation.yml index 333956480d..e24b0c6a57 100644 --- a/.github/workflows/release_notes_generation.yml +++ b/.github/workflows/release_notes_generation.yml @@ -23,12 +23,12 @@ jobs: - name: Gradle Build flankScripts and add it to PATH run: | ./flank-scripts/bash/buildFlankScripts.sh - echo "::add-path::./flank-scripts/bash" + echo "./flank-scripts/bash" >> $GITHUB_PATH - name: Set next release tag variable run: | TAG=$(flankScripts ci nextReleaseTag --token=${{ secrets.GITHUB_TOKEN }}) - echo "::set-env name=NEXT_RELEASE_TAG::$(echo $TAG)"; + echo "NEXT_RELEASE_TAG=$(echo $TAG)" >> $GITHUB_ENV - name: Append release note run: | diff --git a/.github/workflows/update_dependencies.yml b/.github/workflows/update_dependencies.yml index dfe11de343..5e9d67daf4 100644 --- a/.github/workflows/update_dependencies.yml +++ b/.github/workflows/update_dependencies.yml @@ -22,7 +22,7 @@ jobs: - name: Gradle Build flankScripts and add it to PATH run: | ./flank-scripts/bash/buildFlankScripts.sh - echo "::add-path::./flank-scripts/bash" + echo "./flank-scripts/bash" >> $GITHUB_PATH - name: Update dependencies run: |