1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2026-03-15 08:13:16 +08:00

ci: 自动生成 versions.json 文件

This commit is contained in:
涵曦
2024-12-17 02:24:36 +08:00
parent 9079a7d79a
commit 740b24131f
2 changed files with 76 additions and 1 deletions

View File

@@ -16,6 +16,10 @@ on:
issues:
types: [opened, edited, reopened] # Specify events you're interested in
release:
types:
- uploaded
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -59,10 +63,17 @@ jobs:
npm run docs:build
npm run docs:build
- uses: pdm-project/setup-pdm@v3
- name: generate versions.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pdm run get_release.py
- name: Check for changes
id: check_changes
run: |
if [ -n "$(git diff docs/issues)" ]; then
if [ -n "$(git diff docs)" ]; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT