From aba2b229d8897f85f1c288ac0488898c8b16046d Mon Sep 17 00:00:00 2001 From: Lev Chelyadinov Date: Fri, 22 Jan 2021 18:43:48 +0300 Subject: [PATCH] Fix YAML syntax errors --- .github/workflows/auto-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 48f47c04d..aa1898704 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -25,7 +25,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string - script: + script: | const package = require(`${process.env.GITHUB_WORKSPACE}/attractions/package.json`); return `v${package.version}`; @@ -35,7 +35,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string - script: + script: | const changelog = require('fs').readFileSync('CHANGELOG.md', { encoding: 'utf-8' }).split('\n'); const start = changelog.findIndex(line => line.startsWith('## ')); const end = changelog.findIndex((line, index) => line.startsWith('## ') && index > start);