-
Notifications
You must be signed in to change notification settings - Fork 38
50 lines (41 loc) · 1.28 KB
/
check.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
40
41
42
43
44
45
46
47
48
49
50
name: Check files with ColorLib - Check
on:
check_run:
types: [requested_action, rerequested]
jobs:
check:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set environment variables
run: |
echo "SOURCEMOD_PATH=$GITHUB_WORKSPACE/addons/sourcemod" >> $GITHUB_ENV
echo "TOOLS_PATH=$GITHUB_WORKSPACE/tools" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Dependencies
run: python3 -m pip install --upgrade pip setuptools wheel
- name: Clone
uses: actions/checkout@v4
with:
repository: 'c0rp3n/colorlib-check'
ref: 'master'
path: 'deps/colorlib-check'
- name: Install
run: |
pip install -r ./requirements.txt
python3 ./setup.py install
working-directory: ./deps/colorlib-check/
- name: Check Files
run: |
for file in $(find . -name '*.phrases.txt')
do
echo -e "Checking $file..."
colorlib_check -r -c "$TOOLS_PATH/ttt_colors.yaml" $file
done
working-directory: ${{ env.SOURCEMOD_PATH }}/