Skip to content

test:version changelog #11

test:version changelog

test:version changelog #11

Workflow file for this run

name: Release
on:
push:
branches:
- master
paths:
- './version.json'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:

Check failure on line 13 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- name: Checkout code
uses: actions/checkout@v2
- name: Get version from version.json
id: get_info
run: |
echo "version=$(node -p "require('./version.json').version")" >> $GITHUB_ENV
- name: Get changelog
id: get_changelog
run: |
echo "changelog=$(sed -n '/## ${{ env.version }}/,/^##/p' CHANGELOG.md)" >> $GITHUB_ENV
- name: Print Changelog
run: |
echo "Changelog: ${{ env.changelog }}"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: v${{ env.version }}
body: ${{ env.changelog }}
draft: false
prerelease: false