Skip to content

Commit

Permalink
run the wrapper on pull requests to check for conflicts/etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
flameshikari committed Oct 25, 2023
1 parent 75583e2 commit 49e1e2b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/conflicts_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Conflicts Check
run-name: ${{ inputs.release_type }} @ ${{ github.sha }}

on:
push:
paths:
- 'resources\utilities\icons\**'
- 'resources\new_icons.yaml'
pull_request:
paths:
- 'resources\utilities\icons\**'
- 'resources\new_icons.yaml'

jobs:
build:
name: Conflicts Check
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies
run: sudo pip install -r resources/utilities/requirements.txt

- name: Add new icons
run: python -u resources/utilities/add_icons_wrapper.py -D
3 changes: 3 additions & 0 deletions resources/utilities/add_icons_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from os import system as execute
from os import name as platform
from os.path import abspath, basename, dirname, realpath
from sys import argv

from yaml import safe_load as yaml

Expand Down Expand Up @@ -57,6 +58,8 @@
print(f'Issues with the next icons: {", ".join(errors)}')
exit(1)

if argv[1] == '-D': exit(0)

for icon in icons:
drawable = icon[0]
compinfos = ' '.join(icon[1])
Expand Down

0 comments on commit 49e1e2b

Please sign in to comment.