-
Notifications
You must be signed in to change notification settings - Fork 464
47 lines (41 loc) · 1.19 KB
/
duplicate-profiles.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
name: Check for duplicate profiles
on:
pull_request:
types: [opened, synchronize]
paths:
- 'drivers/**/profiles/*.yml'
env:
LUA_PATH: /home/runner/work/lua_libs/?.lua;./?.lua;/home/runner/work/lua_libs/?/init.lua;./?/init.lua
jobs:
find-duplicate-profiles:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Creates file "$/files.csv", among others
- id: file_changes
name: Gather file changes
uses: trilom/[email protected]
with:
output: ','
fileOutput: ','
# For verification
- name: Show files changed
run: |
cat $HOME/files.csv
- name: Run python script
run: |
python ./.github/scripts/check_duplicates.py
- name: Upload duplicate profile comment artifact
uses: actions/upload-artifact@v3
with:
name: duplicate_profile_comment
path: |
profile-comment-body.md
- run: echo ${{ github.event.number }} > pr_number.txt
- name: Upload PR info
uses: actions/upload-artifact@v3
with:
name: pr_number
path: |
pr_number.txt