Skip to content

Commit

Permalink
ci: Update deprecated options ::set-env and ::add-path (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotradamczyk5 authored Oct 19, 2020
1 parent fd7fde6 commit ad1ed84
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_notes_generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit ad1ed84

Please sign in to comment.