Explorar el Código

【维护】优化 index.min.html 文件的部署方式

- 将 mv 命令改为 cp -uv 命令
PJ568 hace 1 año
padre
commit
d8db21487a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      action.yml

+ 1 - 1
action.yml

@@ -27,7 +27,7 @@ runs:
     - name: Deploy minimized file
       run: |
         mkdir -p "${{ inputs.target-dir }}"
-        mv ${{ github.action_path }}/index.min.html "${{ inputs.target-dir }}/index.html"
+        cp -uv ${{ github.action_path }}/index.min.html "${{ inputs.target-dir }}/index.html"
       shell: bash
 
 branding: