aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/release.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1356e06..cb80408 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -20,17 +20,24 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
+ - name: Get version from tag
+ uses: little-core-labs/get-git-tag@v3.0.2
+ id: tag_name
+ with:
+ tagRegex: "v(.*)"
+
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
- version: ${{ github.ref }}
+ version: ${{ steps.tag_name.outputs.tag }}
path: ./CHANGELOG.md
- name: Safe Changelog Text
+ id: changelog_text
run: |
echo '${{ steps.changelog_reader.outputs.changes }}' >> $HOME/changelog_entry
- echo "clfile=${HOME}/changelog_entry" >> $GITHUB_ENV
+ echo ::set-output name=clfile::$HOME/changelog_entry
- name: Docker Login
uses: azure/docker-login@v1
@@ -50,7 +57,7 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
version: latest
- args: --release-notes ${{ env.clfile }}
+ args: --release-notes ${{ steps.changelog_text.outputs.clfile }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}