Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
use environment files instead of set-env (actions)
Browse files Browse the repository at this point in the history
  • Loading branch information
skel35 authored and AndrewVebster committed Nov 17, 2020
1 parent c4c8d5e commit 46d6ae5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
echo $installer_name
# Export env to all future steps
echo "::set-env name=TAG_NAME::$TAG_NAME"
echo "::set-env name=version::$version"
echo "::set-env name=timestamp::$timestamp"
echo "::set-env name=escaped_version::$escaped_version"
echo "::set-env name=installer::$installer"
echo "::set-env name=installer_name::$installer_name"
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
echo "version=$version" >> $GITHUB_ENV
echo "timestamp=$timestamp" >> $GITHUB_ENV
echo "escaped_version=$escaped_version" >> $GITHUB_ENV
echo "installer=$installer" >> $GITHUB_ENV
echo "installer_name=$installer_name" >> $GITHUB_ENV
- name: Setup Golang env
if: github.event_name == 'release'
uses: actions/setup-go@v1
Expand Down Expand Up @@ -132,12 +132,12 @@ jobs:
echo $installer
echo $installer_name
# Export env to all future steps
echo "::set-env name=TAG_NAME::$TAG_NAME"
echo "::set-env name=version::$version"
echo "::set-env name=timestamp::$timestamp"
echo "::set-env name=escaped_version::$escaped_version"
echo "::set-env name=installer::$installer"
echo "::set-env name=installer_name::$installer_name"
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
echo "version=$version" >> $GITHUB_ENV
echo "timestamp=$timestamp" >> $GITHUB_ENV
echo "escaped_version=$escaped_version" >> $GITHUB_ENV
echo "installer=$installer" >> $GITHUB_ENV
echo "installer_name=$installer_name" >> $GITHUB_ENV
- name: Setup Golang env
if: github.event_name == 'release'
uses: actions/setup-go@v1
Expand Down

0 comments on commit 46d6ae5

Please sign in to comment.