Skip to content

Commit ce5ec03

Browse files
committed
【维护】更新 GitHub Actions 工作流
- 将 main 分支更改为 master 分支 - 优化标签删除条件,适用于取消或失败情况
1 parent dddc768 commit ce5ec03

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- main
7+
- master
88

99
jobs:
1010
release:
@@ -81,8 +81,8 @@ jobs:
8181
tag: "v${{ steps.version-check.outputs.version }}"
8282
artifacts: "../release/index.html,../release/index.min.html,../release/index.allinone.html,../release/index.allinone.min.html"
8383

84-
- name: Delete tag on failure
85-
if: failure() && steps.push-tag.outputs.tag_name != ''
84+
- name: Delete tag
85+
if: (cancelled() || failure()) && steps.push-tag.outputs.tag_name != ''
8686
run: |
8787
git config user.name "${GITHUB_ACTOR}"
8888
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22

33
<html>
4-
<markdown-html version="1.15.0" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
4+
<markdown-html version="1.15.1" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
55
license="CC BY-SA 4.0 International"></markdown-html>
66

77
<head>

0 commit comments

Comments
 (0)