Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix[#728]: compatible with qinglong history versions #729

Merged
merged 13 commits into from
May 18, 2024
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report----.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ assignees: ''

---

<!-- 璇峰畬鏁村嬀閫夋垨濉啓濡備笅淇℃伅 -->
<!-- 璇峰畬鏁村~鍐欏涓嬩俊鎭� -->
<!-- 鍕鹃�夐」鍙互鍦ㄦ彁浜や箣鍚庯紝杩涜鍕鹃�� -->

### 鐗堟湰

Expand Down Expand Up @@ -59,4 +60,4 @@ BiliTool鐗堟湰鍙凤細`x.x.x`
<杩欓噷>
```

</details>
</details>
6 changes: 4 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report-qinglong----.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ assignees: ''

---

<!-- 璇峰畬鏁村嬀閫夋垨濉啓濡備笅淇℃伅 -->
<!-- 璇峰畬鏁村~鍐欏涓嬩俊鎭� -->
<!-- 鍕鹃�夐」鍙互鍦ㄦ彁浜や箣鍚庯紝杩涜鍕鹃�� -->

### 鐗堟湰

Expand All @@ -18,7 +19,8 @@ BiliTool鐗堟湰鍙凤細`x.x.x`
### 纭

- [ ] 鏄殑锛屾垜宸叉悳绱㈠苟纭锛屾病鏈夊叾浠栫浉鍚岀殑璁
- [ ] 鏄殑锛屾垜纭锛屽凡灏濊瘯鍗囩骇鍒版渶鏂扮増锛屼絾鏈В鍐�
- [ ] 鏄殑锛屾垜纭锛屽凡灏濊瘯鍗囩骇bilitool鍒版渶鏂扮増锛屼絾鏈В鍐�
- [ ] 鏄殑锛屾垜纭锛屽凡灏濊瘯鍗囩骇闈掗緳鍒版渶鏂扮増锛屼絾鏈В鍐�

### 鏈嶅姟鍣ㄦ灦鏋�

Expand Down
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/feature-request----.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ assignees: ''

---

<!-- 璇峰畬鏁村嬀閫夋垨濉啓濡備笅淇℃伅 -->
<!-- 璇峰畬鏁村~鍐欏涓嬩俊鎭� -->
<!-- 鍕鹃�夐」鍙互鍦ㄦ彁浜や箣鍚庯紝杩涜鍕鹃�� -->

### 纭

Expand Down
5 changes: 1 addition & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<!-- 璇稰R鍒版垜鐨刣evelop鍒嗘敮 -->

<!-- 濡傛灉鎮ㄦ槑鐧芥鍦ㄥ仛浠�涔堬紝璇峰皢涓嬩竴琛屼腑绗﹀彿銆愩�戝唴鐨勬枃瀛楃敱鈥渘o鈥濅慨鏀逛负鈥測es鈥濓紙涓嶅惈寮曞彿锛� -->
<!-- 璇烽棶鎮ㄦ槸鍚︽槑鐧斤細銆恘o銆� -->
<!-- 璇疯缁嗘弿杩颁綘瑕丳R鐨勫唴瀹� -->

### 鍐呭

Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/auto-close-pr.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
# 鑷姩鍏抽棴涓嶈鑼働R
name: AutocloserPR
name: AutoSetPR
on:
pull_request_target:
types: [opened, edited]

jobs:
Autoclose:
runs-on: ubuntu-latest
if: github.repository == 'RayWangQvQ/BiliBiliToolPro'
steps:
- uses: roots/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-close-message: "This PR was automatically closed because it did not meet the requirements, please check the requirements."
pr-pattern: ".*璇烽棶鎮ㄦ槸鍚︽槑鐧斤細銆恲es銆� -->.*"

checkTargetBranch:
runs-on: ubuntu-latest
needs: Autoclose
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# 发布镜像
name: Publish image

on:
workflow_dispatch:
inputs:
manualTag:
description: 'Manual Tag'
required: true
autoWithLatestTag:
description: 'Auto Add Latest Tag'
required: true
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ jobs:
run: |
content=$(sed -n '/^## /{p;:a;n;/^## /q;p;ba}' CHANGELOG.md)
version=$(echo "$GITHUB_REF" | sed 's/refs\/tags\///')
echo "::set-output name=content::$content"
echo "::set-output name=version::$version"
echo "version=$version" >> $GITHUB_OUTPUT
{
echo 'content<<EOF'
echo '$content'
echo EOF
} >> "$GITHUB_OUTPUT"

- name: Create Release
uses: softprops/action-gh-release@v1
Expand All @@ -44,7 +48,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
name: "BiliBiliToolPro-V${{ steps.release_notes.outputs.version }}"
tag_name: ${{ github.event.inputs.version }}
body: ${{ steps.release_notes.outputs.content }}
body: '${{ steps.release_notes.outputs.content }}'
discussion_category_name: Announcements
generate_release_notes: true
fail_on_unmatched_files: true
8 changes: 3 additions & 5 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# 合并main分支后打tag
name: Tag

on:
push:
branches:
- main
pull_request:
types:
- closed
Expand All @@ -29,5 +27,5 @@ jobs:
- name: Tag and push
run: |
new_tag="${{ steps.current_version.outputs.current_version }}"
git tag "$new_tag"
git push origin "$new_tag"
git tag -f "$new_tag"
git push -f origin "$new_tag"
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.1.2
- Feature: enhancement CICD scripts
- Fix[#728]: compatible with qinglong history versions
## 2.1.1
- Feature: listen ctrl+c at the very beginning
- Fix: fix qinglong read cron error
Expand Down
1 change: 1 addition & 0 deletions Ray.BiliBiliTool.sln
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ISSUE_TEMPLATE", "ISSUE_TEMPLATE", "{830361B7-BCC1-4853-879A-761B0FD86826}"
ProjectSection(SolutionItems) = preProject
.github\ISSUE_TEMPLATE\bug-report----.md = .github\ISSUE_TEMPLATE\bug-report----.md
.github\ISSUE_TEMPLATE\bug-report-qinglong----.md = .github\ISSUE_TEMPLATE\bug-report-qinglong----.md
.github\ISSUE_TEMPLATE\feature-request----.md = .github\ISSUE_TEMPLATE\feature-request----.md
.github\ISSUE_TEMPLATE\other----.md = .github\ISSUE_TEMPLATE\other----.md
EndProjectSection
Expand Down
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Authors>Ray</Authors>
<Version>2.1.1</Version>
<Version>2.1.2</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
</PropertyGroup>
</Project>
4 changes: 4 additions & 0 deletions qinglong/DefaultTasks/bili_task_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ MemoryWarn=${MemoryWarn:-""}
DiskWarn=${DiskWarn:-""}

dir_repo=${dir_repo:-"$QL_DIR/data/repo"}
# 闇�瑕佸吋瀹硅�佺増鏈潚榫欙紝https://github.com/RayWangQvQ/BiliBiliToolPro/issues/728
if [ ! -d "$dir_repo" ] && [ -d "$QL_DIR/repo" ]; then
dir_repo="$QL_DIR/repo"
fi
dir_shell=$QL_DIR/shell
touch $dir_shell/env.sh && . $dir_shell/env.sh
touch /root/.bashrc && . /root/.bashrc
Expand Down
4 changes: 4 additions & 0 deletions qinglong/DefaultTasks/dev/bili_dev_task_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ MemoryWarn=${MemoryWarn:-""}
DiskWarn=${DiskWarn:-""}

dir_repo=${dir_repo:-"$QL_DIR/data/repo"}
# 闇�瑕佸吋瀹硅�佺増鏈潚榫欙紝https://github.com/RayWangQvQ/BiliBiliToolPro/issues/728
if [ ! -d "$dir_repo" ] && [ -d "$QL_DIR/repo" ]; then
dir_repo="$QL_DIR/repo"
fi
dir_shell=$QL_DIR/shell
touch $dir_shell/env.sh && . $dir_shell/env.sh
touch /root/.bashrc && . /root/.bashrc
Expand Down
Loading