Skip to content

Commit

Permalink
Merge pull request #199 from schemahero/previous-release
Browse files Browse the repository at this point in the history
Set previous release in goreleaser
  • Loading branch information
marccampbell committed May 28, 2020
2 parents 859fa0c + d2ff18b commit 917f56f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tagged-release.yaml
Expand Up @@ -95,6 +95,10 @@ jobs:
with:
username: schemaherodeploy
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: set previous release tag for goreleaser
shell: bash
run: |
echo ::set-env name=GORELEASER_PREVIOUS_TAG::$(curl --silent "https://api.github.com/repos/schemahero/schemahero/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1.5.1
with:
Expand Down

0 comments on commit 917f56f

Please sign in to comment.