Skip to content

Commit

Permalink
Update to Environment Files
Browse files Browse the repository at this point in the history
GitHub obsoleted the echo commands
  • Loading branch information
KronicDeth committed Nov 20, 2020
1 parent d816f59 commit 9cddb88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
otp-version: 22.2
elixir-version: 1.7.4
- name: Export OTP_RELEASE
run: echo "::set-env name=OTP_RELEASE::22.2"
run: echo "OTP_RELEASE=22.2" >> $GITHUB_ENV
- name: Export ERLANG_SDK_HOME
run: echo "::set-env name=ERLANG_SDK_HOME::`erl -eval 'io:format("~s", [code:root_dir()]).' -noshell -run init stop`"
run: echo "ERLANG_SDK_HOME=`erl -eval 'io:format("~s", [code:root_dir()]).' -noshell -run init stop`" >> $GITHUB_ENV
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Compile Tests with Gradle
Expand All @@ -49,13 +49,13 @@ jobs:
- name: Build with Gradle
run: ./gradlew buildPlugin
- name: Export ASSET_PATH
run: echo "::set-env name=ASSET_PATH::`ls -1 build/distributions/intellij-elixir-*.zip`"
run: echo "ASSET_PATH=`ls -1 build/distributions/intellij-elixir-*.zip`" >> $GITHUB_ENV
- name: Export ASSET_NAME
run: echo "::set-env name=ASSET_NAME::${ASSET_PATH#build/distributions/}"
run: echo "ASSET_NAME=${ASSET_PATH#build/distributions/}" >> $GITHUB_ENV
- name: Export TAG
run: |
version_suffix_zip=${ASSET_NAME#intellij-elixir-}
echo "::set-env name=TAG::v${version_suffix_zip%.zip}"
echo "TAG=v${version_suffix_zip%.zip}" >> $GITHUB_ENV
- name: Tag Commit
uses: hole19/git-tag-action@master
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
otp-version: 22.2
elixir-version: 1.7.4
- name: Export OTP_RELEASE
run: echo "::set-env name=OTP_RELEASE::22.2"
run: echo "OTP_RELEASE=22.2" >> $GITHUB_ENV
- name: Export ERLANG_SDK_HOME
run: echo "::set-env name=ERLANG_SDK_HOME::`erl -eval 'io:format("~s", [code:root_dir()]).' -noshell -run init stop`"
run: echo "ERLANG_SDK_HOME=`erl -eval 'io:format("~s", [code:root_dir()]).' -noshell -run init stop`" >> $GITHUB_ENV
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Compile Tests with Gradle
Expand Down

0 comments on commit 9cddb88

Please sign in to comment.