-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (34 loc) · 1.2 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
name: 'Check Duplicate DMI Icon States'
description: 'Detects that DMIs in folders do not have duplicate icon states'
branding:
icon: 'image'
color: 'blue'
inputs:
GITHUB_TOKEN:
description: A GITHUB_TOKEN to fetch the tool
required: true
folders_to_search:
description: 'Folders to search, comma delineated (default: root folder)'
default: '.'
flags:
description: Put other flags for the duplicate checker here
default: '--warn-read --actions-fmt'
version:
description: 'Version of the tool to use (default: latest)'
default: 'v1.0.5'
runs:
using: "composite"
steps:
- name: Install Duplicate Checker
uses: jaxxstorm/[email protected]
with:
repo: spacestation13/dmi-duplicate-state-checker
tag: ${{ inputs.version }}
cache: enable
arch: x86_64
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
- run: |
os_str=$(echo 'console.log("${{ runner.os }}".toLowerCase())' | node -);
/opt/hostedtoolcache/spacestation13/dmi-duplicate-state-checker/${{ inputs.version }}/${os_str}-x86_64/dmi-duplicate-state-checker -p ${{ inputs.folders_to_search }} ${{ inputs.flags }}
shell: bash