From ab78ffcd006405051b057be1f25d5b9c16ee0b66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Sun, 10 Jan 2021 19:06:00 -0400 Subject: [PATCH] Updated workflow --- .github/workflows/release.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f86326a..97de092 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,7 +11,9 @@ jobs: steps: - name: Get version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: | + export VERSION="${GITHUB_REF/refs\/tags\//}" + echo "VERSION=$VERSION" >> $GITHUB_ENV - uses: actions/checkout@v2 @@ -45,15 +47,17 @@ jobs: steps: - name: Get version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: | + export VERSION="${GITHUB_REF/refs\/tags\//}" + echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Check out repository uses: actions/checkout@v2 - name: Changelog run: | - export CHANGELOG=`git log $(git tag --sort=-version:refname | head -n 2 | tail -n 1)...${{ github.ref }} --pretty=format:'
  • view commit • %s
  • ' --reverse` - echo "::set-env name=CHANGELOG::$CHANGELOG" + export CHANGELOG=`git log $(git tag --sort=-version:refname | head -n 2 | tail -n 1)...${{ github.ref }} --pretty=format:'
  • view commit • %s
  • ' --reverse` + echo "CHANGELOG=$CHANGELOG" >> $GITHUB_ENV - name: Create Release id: create_release