File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 4444 echo "ERROR: Not found 'tip' section in CHANGELOG. Please add relavant entries and recreate git tag"
4545 exit 1
4646 fi
47- export NOTES="$(sed -n '/# tip/,/## /p' CHANGELOG.md | sed -e '$d' -e '1d')"
47+ export NOTES="$(sed -n '/## tip/,/## /p' CHANGELOG.md | sed -e '$d' -e '1d')"
4848 sed -i 's/## tip/&\n\n## ${{ env.PKG_TAG }}/' CHANGELOG.md
4949 cat <<EOT > NOTES.md
5050 ## ${{ env.PKG_TAG }}
5555 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5656 run : |
5757 gh release create ${{ env.PKG_TAG }} --notes-file=NOTES.md ./dist/*
58+ - name : Automatic update changelog
59+ if : ${{ hashFiles('NOTES.md') != '' }}
60+ run : |
61+ rm -rf NOTES.md
62+ export CL_BRANCH="changelog-update-$(date +%s)"
63+ git checkout -b "${CL_BRANCH}"
64+ git add CHANGELOG.md
65+ git commit -S -m "Automatic update CHANGELOG"
66+ git push origin ${CL_BRANCH}
67+ gh pr create -f
68+ env :
69+ GH_TOKEN : " ${{ secrets.VM_BOT_GH_TOKEN }}"
70+ GITHUB_TOKEN : " ${{ secrets.VM_BOT_GH_TOKEN }}"
You can’t perform that action at this time.
0 commit comments