Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit 5ddc07a

Browse files
authored
Add option both for unique flag (v2.5.0) (#18)
* 🆙 Update dependencies * 📦 Add formatter * 📦 Add prebuild * 🤖 Add husky * 🤘 Use ESM 🤘 Use ESM * 🤖 Update prettier * 📦 Add option `both` for unique flag * 🤘 Update marketplace icon * 📦 Update build
1 parent d2bd7b8 commit 5ddc07a

File tree

13 files changed

+1221
-1307
lines changed

13 files changed

+1221
-1307
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
dist/
2+
reports/
3+
*.t.mjs

.eslintrc.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"parserOptions": {
33
"ecmaVersion": 2020,
4-
"sourceType": "script"
4+
"sourceType": "module"
55
},
66
"env": {
77
"es6": true,
@@ -10,7 +10,12 @@
1010
"plugins": ["github"],
1111
"extends": ["plugin:github/recommended"],
1212
"rules": {
13-
"camelcase": ["error", {"allow": [""]}],
14-
"no-console": "error"
13+
"camelcase": [
14+
"error",
15+
{
16+
"allow": [""]
17+
}
18+
],
19+
"no-console": "off"
1520
}
1621
}

.github/husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.github/husky/pre-commit

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
[ -n "$CI" ] && exit 0
4+
5+
. "$(dirname "$0")/_/husky.sh"
6+
7+
npm run format
8+
9+
npm run build
10+
11+
npm run test

.github/husky/pre-push

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
[ -n "$CI" ] && exit 0
4+
5+
. "$(dirname "$0")/_/husky.sh"
6+
7+
if [[ $(git status --porcelain -s) != "" ]]; then
8+
echo "\n😵 Uncommitted changes found 😵"
9+
echo "Please \`git add\` and \`git commit\` or \`git stash -u\` them before pushing!\n"
10+
11+
exit 1
12+
fi
13+
14+
exit 0

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist/
2+
reports/
3+
4+
package-lock.json
File renamed without changes.

action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ inputs:
2020
default: 'false'
2121
required: false
2222
unique:
23-
description: 'Only list unique GitHub Actions'
23+
description: 'List unique GitHub Actions. Possible values are `true`, `false` and `both`.'
2424
default: 'false'
2525
required: false
2626
csv:
@@ -39,8 +39,14 @@ inputs:
3939
outputs:
4040
csv_result:
4141
description: 'GitHub Actions used as CSV (only if `csv` input provided)'
42+
csv_result_unique:
43+
description: |
44+
GitHub Actions used as CSV (only if `csv` input provided and `unique=both`)
4245
md_result:
4346
description: 'GitHub Actions used as markdown (only if `md` input provided)'
47+
md_result_unique:
48+
description: |
49+
GitHub Actions used as markdown (only if `md` input provided and `unique=both`)
4450
json_result:
4551
description: 'GitHub Actions used as JSON'
4652

@@ -49,5 +55,5 @@ runs:
4955
main: 'dist/index.js'
5056

5157
branding:
52-
icon: 'check-circle'
58+
icon: 'list'
5359
color: 'green'

dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/licenses.txt

Lines changed: 93 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)