Skip to content

Commit

Permalink
Remove set-env
Browse files Browse the repository at this point in the history
  • Loading branch information
matteofigus committed Dec 14, 2020
1 parent 312688e commit 6068bb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
role-duration-seconds: 900
- name: Set version
id: version
run: echo ::set-env name=VERSION::${GITHUB_REF/refs\/tags\//}
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
# Cache
- uses: actions/cache@v1
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ jobs:
- name: Build Template
run: npm run build
# Release if required
- name: Setup versions in env variables
- name: Set version
id: version
run: |
run: |
function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; }
echo ::set-env name=THIS_VERSION::$(npm run echo-version --silent | sed s/^v//)
echo ::set-env name=THIS_VERSION_COMPARABLE::$(version $(npm run echo-version --silent | sed s/^v//))
echo ::set-env name=LATEST_VERSION_COMPARABLE::$(version $(git describe --tags $(git rev-list --tags --max-count=1) | sed s/^v// 2> /dev/null || echo '0'))
echo "THIS_VERSION=$(npm run echo-version --silent | sed s/^v//)" >> $GITHUB_ENV
echo "THIS_VERSION_COMPARABLE=$(version $(npm run echo-version --silent | sed s/^v//))" >> $GITHUB_ENV
echo "LATEST_VERSION_COMPARABLE=$(version $(git describe --tags $(git rev-list --tags --max-count=1) | sed s/^v// 2> /dev/null || echo '0'))" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@latest
Expand Down

0 comments on commit 6068bb7

Please sign in to comment.