Skip to content

Commit

Permalink
Fix github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenbonito committed May 6, 2020
1 parent aed31d4 commit 8e8f1e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Get release version
if: github.event_name == 'release' && github.event.action == 'published'
env:
RELEASE_TAG: ${{ github.ref }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: echo "::set-env name=RELEASE_VERSION::${RELEASE_TAG#v}"

- name: Push base image
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Get version
env:
TAG_REF: ${{ github.ref }}
run: |
TAG_NAME=$(echo "${TAG_REF#refs/tags/}")
echo "::set-env name=VERSION::${TAG_NAME#v}"
- name: Create release
uses: actions/create-release@v1
env:
Expand All @@ -18,9 +25,9 @@ jobs:
release_name: Release ${{ github.ref }}
body: |
Changes in this release
- Update [pandoc/latex](https://hub.docker.com/r/pandoc/latex) (base image) to ${{ github.ref }}
- Update [pandoc/latex](https://hub.docker.com/r/pandoc/latex) (base image) to ${VERSION}
Images:
- `frozenbonito/pandoc-eisvogel-ja:${{ github.ref }}`
- `frozenbonito/pandoc-eisvogel-ja:${{ github.ref }}-plantuml`
- `frozenbonito/pandoc-eisvogel-ja:${VERSION}`
- `frozenbonito/pandoc-eisvogel-ja:${VERSION}-plantuml`
draft: true

0 comments on commit 8e8f1e4

Please sign in to comment.