Skip to content

Commit 6c88411

Browse files
authored
1 parent 9364ebe commit 6c88411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
- id: set-version
3333
run: |
3434
if [[ -n '${{ github.event.inputs.version }}' ]]; then
35-
echo '::set-env name=RELEASE_VERSION::${{ github.event.inputs.version }}';
35+
echo 'RELEASE_VERSION=${{ github.event.inputs.version }}' >> $GITHUB_ENV;
3636
else
3737
DATE_PART=$(date +'%y.%-m')
3838
declare -i PATCH_VERSION=0
3939
while curl -sf -o /dev/null "https://api.github.com/repos/$GITHUB_REPOSITORY/git/ref/tags/$DATE_PART.$PATCH_VERSION"; do
4040
PATCH_VERSION+=1
4141
done
42-
echo "::set-env name=RELEASE_VERSION::${DATE_PART}.${PATCH_VERSION}"
42+
echo "RELEASE_VERSION=${DATE_PART}.${PATCH_VERSION}" >> $GITHUB_ENV;
4343
fi
4444
- uses: actions/checkout@v2
4545
with:

0 commit comments

Comments
 (0)