Skip to content

Commit ccd352f

Browse files
committed
feat: ci test
1 parent db23b65 commit ccd352f

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

.github/workflows/lint.yaml

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1+
---
12
name: Lint
23

3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
4+
on: # yamllint disable-line rule:truthy
5+
push: null
6+
pull_request: null
7+
8+
permissions: {}
109

1110
jobs:
12-
run-linters:
13-
name: Run linters
11+
build:
12+
name: Lint
1413
runs-on: ubuntu-latest
1514

15+
permissions:
16+
contents: read
17+
packages: read
18+
# To report GitHub Actions status checks
19+
statuses: write
20+
1621
steps:
17-
- name: Check out Git repository
22+
- name: Checkout code
1823
uses: actions/checkout@v4
19-
20-
- name: Set up Node.js
21-
uses: pnpm/action-setup@v4
2224
with:
23-
run_install: true
25+
# super-linter needs the full git history to get the
26+
# list of files that changed across commits
27+
fetch-depth: 0
2428

2529
- name: Super-linter
2630
uses: super-linter/super-linter@v7.2.1 # x-release-please-version

packages/operator/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ const operators = generateMapping()
6565
export default operators
6666

6767
export function getOperatorId(operatorConfig) {
68-
// return operatorConfig.filename.replace(/^(dyn_illust_)(char_[\d]+)(_[\w]+)(|(_.+))$/g, '$2$3$4')
69-
return operatorConfig.fallback_name.replace(/^(char_[\d]+)(_[\w]+)(_.+)$/g, '$1$2$3')
68+
return operatorConfig.filename.replace(/^(dyn_illust_)(char_[\d]+)(_[\w]+)(|(_.+))$/g, '$2$3$4')
7069
}
7170

7271
export const build = async (namesToBuild) => {

0 commit comments

Comments
 (0)