Updated workflow

This commit is contained in:
マリウス 2021-01-10 19:06:00 -04:00
parent 03d3a33a43
commit ab78ffcd00
No known key found for this signature in database
GPG key ID: C228EF0A530AF06F

View file

@ -11,7 +11,9 @@ jobs:
steps: steps:
- name: Get version - name: Get version
id: 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 - uses: actions/checkout@v2
@ -45,15 +47,17 @@ jobs:
steps: steps:
- name: Get version - name: Get version
id: 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 - name: Check out repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Changelog - name: Changelog
run: | run: |
export CHANGELOG=`git log $(git tag --sort=-version:refname | head -n 2 | tail -n 1)...${{ github.ref }} --pretty=format:'<li> <a href="http://github.com/jerel/<project>/commit/%H">view commit &bull;</a> %s</li> ' --reverse` export CHANGELOG=`git log $(git tag --sort=-version:refname | head -n 2 | tail -n 1)...${{ github.ref }} --pretty=format:'<li> <a href="http://github.com/mrusme/zeit/commit/%H">view commit &bull;</a> %s</li> ' --reverse`
echo "::set-env name=CHANGELOG::$CHANGELOG" echo "CHANGELOG=$CHANGELOG" >> $GITHUB_ENV
- name: Create Release - name: Create Release
id: create_release id: create_release