Skip to content

Commit

Permalink
add version output var
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcalleja committed Dec 22, 2020
1 parent 17157fa commit 8463282
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
run: make test
- name: Docker Push
run: make push
- name: Create Output Version
id: release
run: |
export VERSION=$(cat VERSION)
echo ::debug ::relase version ${VERSION}
echo ::set-output name=tag_name::v${VERSION}
- name: Update version
id: updatev
run: |
Expand All @@ -42,9 +48,9 @@ jobs:
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"tag_name": "v$(cat VERSION)",
"body": "docker pull rafaelcalleja/jetty-proxy-keycloak:v$(cat VERSION)",
"name": "Release v$(cat VERSION)",
"tag_name": "${{ steps.release.outputs.tag_name }}",
"body": "docker pull rafaelcalleja/jetty-proxy-keycloak:${{ steps.release.outputs.tag_name }}",
"name": "Release ${{ steps.release.outputs.tag_name }}",
"draft": false,
"prerelease": false
}'
Expand Down

0 comments on commit 8463282

Please sign in to comment.