Skip to content

Commit 892bedc

Browse files
georgetticaldelossa
authored andcommitted
fix(actions): fix release.yml
this is a WIP and should solve the promotion problem
1 parent 29b5dda commit 892bedc

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ jobs:
1212
runs-on: 'ubuntu-latest'
1313
container: docker.io/library/golang:1.14
1414
steps:
15+
# This step is for local testing using https://github.com/nektos/act
16+
- name: install node
17+
run: |
18+
apt update
19+
apt install -y nodejs
1520
- name: Setup
1621
run: |
1722
tag=`basename ${{ github.ref }}`
18-
cat <<.
19-
::set-env name=VERSION::${tag}
20-
.
23+
echo "VERSION=${tag}" >> $GITHUB_ENV
2124
- name: Checkout
2225
uses: actions/checkout@v2
2326
with:
@@ -35,17 +38,15 @@ jobs:
3538
chglog="${chglog//'%'/'%25'}"
3639
chglog="${chglog//$'\n'/'%0A'}"
3740
chglog="${chglog//$'\r'/'%0D'}"
38-
cat <<.
39-
::set-env name=CHANGELOG::${chglog}
40-
.
41+
echo "CHANGELOG=${chglog}" >> $GITHUB_ENV
4142
- name: Create Release
4243
id: create_release
4344
uses: actions/create-release@latest
4445
env:
4546
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4647
with:
4748
tag_name: ${{ github.ref }}
48-
release_name: ${{ env.VERSION}} Release
49+
release_name: ${{ env.VERSION }} Release
4950
body: |
5051
${{ env.CHANGELOG }}
5152
prerelease: ${{ contains(env.VERSION, 'alpha') || contains(env.VERSION, 'beta') || contains(env.VERSION, 'rc') }}

0 commit comments

Comments
 (0)