Skip to content

Merge pull request #8 from YaoApp/create-pull-request/patch-p0enjn5 #1

Merge pull request #8 from YaoApp/create-pull-request/patch-p0enjn5

Merge pull request #8 from YaoApp/create-pull-request/patch-p0enjn5 #1

Workflow file for this run

name: Release
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Get version tag
id: version
run: echo "::set-output name=tag::${GITHUB_REF/refs\/tags\//}"
- name: Get changelog url
id: changelog
run: echo "${{ steps.version.outputs.tag }}---$(date +'%Y-%m-%d')" | sed -e 's/\.//g' | awk '{print "::set-output name=url::https://github.com/rogchap/v8go/blob/master/CHANGELOG.md#" $1}'
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.version.outputs.tag }}
release_name: ${{ steps.version.outputs.tag }}
body: Full changelog ⇒ [${{ steps.version.outputs.tag }}](${{ steps.changelog.outputs.url }})
draft: true
prerelease: false