Skip to content

Commit 1798df7

Browse files
committed
【修复】添加重命名文件步骤
- 在 action.yml 中增加了一个新的步骤,用于重命名文件 - 使用 mv 命令将文件从自动生成的名称重命名为用户指定的名称 - 这个改动解决了文件名大小写敏感的问题,提高了跨平台兼容性
1 parent 9bf94e7 commit 1798df7

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ runs:
5656
zipBall: false
5757
out-file-path: ${{ inputs.target-dir }}
5858

59+
- name: Rename file
60+
run: |
61+
mv $GITHUB_WORKSPACE/${{ steps.file-name.outputs.file_name }} $GITHUB_WORKSPACE/${{ inputs.file-name }}
62+
shell: bash
63+
5964
branding:
6065
icon: 'book-open'
6166
color: 'green'

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.17.4" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
4+
<markdown-html version="1.17.5" 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)