File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ jobs:
3636 - name : Create release notes for version ${{ steps.release-version.outputs.version }}
3737 # run: npm run --silent changelog > RELEASE_NOTES_${{ steps.release-version.outputs.version }}.md
3838 run : |
39- if [ $((grep $(grep -m1 'version' package.json | cut -d '"' -f 4) -n CHANGELOG.md || echo 0) | cut -d ':' -f 1) -eq 3 ]; then \
39+ if [ $((grep " $(grep -m1 'version' package.json | cut -d '"' -f 4)" -n CHANGELOG.md || echo 0)| head -1 | cut -d ':' -f 1) -eq 3 ]; then \
4040 awk '/##/{++c;next} c==1' CHANGELOG.md | awk '!/^$/'; \
4141 else \
4242 >&2 echo 'Unchecked version'; \
4343 echo 1; \
44- fi > RELEASE_NOTES_${{ steps.release-version.outputs.version }}.md
44+ fi | tee RELEASE_NOTES_${{ steps.release-version.outputs.version }}.md
4545 # https://github.com/ncipollo/release-action
4646 - name : Create github release
4747 uses : ncipollo/release-action@v1
You can’t perform that action at this time.
0 commit comments