Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Fix YAML syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
illright committed Jan 22, 2021
1 parent 455495f commit aba2b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand All @@ -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);
Expand Down

0 comments on commit aba2b22

Please sign in to comment.