forked from EhTagTranslation/Database
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 815 Bytes
/
check_pr.yml
File metadata and controls
32 lines (27 loc) · 815 Bytes
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
name: check_pr
on: pull_request
jobs:
check_pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download tool
run: ./scripts/init.sh
- name: Build
run: node --enable-source-maps tool create-release --strict . ./publish
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: database
path: |
./publish
./database
- name: Check for uncommitted changes
# Ensure no changes
run: |
git add .
if ! git diff --color=always --cached --exit-code; then
echo ""
echo "::error::更改包含非标准的条目,请按上述输出将红色行内容修改为对应绿色行内容。"
exit 1
fi