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:'