-
-
Notifications
You must be signed in to change notification settings - Fork 485
39 lines (39 loc) · 1.14 KB
/
test.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
name: Check skills
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- id: prepare
run: npm ci
working-directory: .github/src
- id: check
name: Run auto skill checks
working-directory: .github/src
continue-on-error: true
run: node check.js
- id: results
name: Generate results
run: |
git config --global user.name "Metarhia skill bot"
git config --global user.email "[email protected]"
git add ./Profile ./README.md ./Skills
git commit -m "Automated skill analysis and report"
git push
- id: finalize
name: Finalization
if: steps.check.outcome != 'success'
run: exit 1