diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5897bd73d6c..9006ff203a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,16 +14,15 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Get version and name from version.json + - name: Get version from version.json id: get_info run: | echo "version=$(node -p "require('./version.json').version")" >> $GITHUB_ENV - echo "name=$(node -p "require('./version.json').name")" >> $GITHUB_ENV - name: Get changelog id: get_changelog run: | - echo "changelog=$(sed -n -e '/## '${version} -e '/##/p' CHANGELOG.md | sed '1d;$d')" >> $GITHUB_ENV + echo "changelog=$(sed -n '/## '${version}'/,/##/p' CHANGELOG.md | head -n -1 | tail -n +2)" >> $GITHUB_ENV - name: Create Release id: create_release diff --git a/version.json b/version.json index 698bdf02dd9..688e939808b 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,3 @@ { - "name": "TV", "version": "1.0.0" } \ No newline at end of file