-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
42 lines (42 loc) · 1.12 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 'Install CNS11643 fonts'
description: 'Install CNS11643 fonts'
author: hms5232
branding:
icon: type
color: yellow
inputs:
kai:
description: 'Install 正楷體 or not'
required: false
default: 'true'
sung:
description: 'Install 正宋體 or not'
required: false
default: 'true'
download-flag:
description: 'Add flag(s) when use wget'
required: false
default: '-nv'
runs:
using: "composite"
steps:
- run: ${{ github.action_path }}/init.sh
shell: bash
- run: |
echo "::group::download and unzip"
${{ github.action_path }}/download.sh -f "${{ inputs.download-flag }}" || echo "Download completed"
echo "::endgroup::"
shell: bash
- run: ${{ github.action_path }}/copy.sh kai
shell: bash
if: ${{ inputs.kai == 'true' }}
- run: ${{ github.action_path }}/copy.sh sung
shell: bash
if: ${{ inputs.sung == 'true' }}
- run: |
echo "::group::update fonts"
${{ github.action_path }}/install.sh
echo "::endgroup::"
shell: bash
- run: ${{ github.action_path }}/clear.sh
shell: bash