Enhance ci workflow (#7807)

* Update parse-changelog.py

* Update ci.yml

* Update ci.yml

* Update parse-changelog.py
This commit is contained in:
绛亽 2023-03-29 08:44:33 +08:00 committed by GitHub
parent 0d71170331
commit 3b6afae6c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 6 deletions

View file

@ -25,13 +25,22 @@ jobs:
with:
python-version: "3.10"
- run: pip install PyGithub
- id: thislatestR
uses: pozetroninc/github-action-get-latest-release@master
with:
# owner: siyuan-note
# repo: siyuan
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
excludes: prerelease, draft
- name: Gather Release Information
id: release_info
run: |
echo "release_title=$(git show --format=%s --no-patch | head -1)" >> $GITHUB_OUTPUT
echo "release_version=$(TZ=Asia/Shanghai date +'v%Y%m%d%H%M')" >> $GITHUB_OUTPUT
changelog=$(python scripts/parse-changelog.py -t ${{ github.ref }} siyuan-note/siyuan)
changelog=$(python scripts/parse-changelog.py -t ${{ github.ref }} -b ${{ steps.thislatestR.outputs.release }} siyuan-note/siyuan)
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "release_body<<$EOF" >> $GITHUB_ENV
echo "$changelog" >> $GITHUB_ENV
@ -143,7 +152,7 @@ jobs:
working-directory: ${{ github.workspace }}/go/src/github.com/siyuan-note/siyuan/app
- name: Install Node Dependencies
run: pnpm install
run: pnpm install --no-frozen-lockfile
working-directory: ${{ github.workspace }}/go/src/github.com/siyuan-note/siyuan/app
- name: Building UI