forked from devicons/devicon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/devicons/devicon
- Loading branch information
Showing
55 changed files
with
3,294 additions
and
227 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import traceback | ||
import sys | ||
|
||
# pycharm complains that build_assets is an unresolved ref | ||
# don't worry about it, the script still runs | ||
from build_assets import filehandler, arg_getters | ||
from build_assets import util | ||
|
||
|
||
def main(): | ||
""" | ||
Check the quality of the svgs of the whole icons folder. | ||
""" | ||
args = arg_getters.get_check_svgs_monthly_args() | ||
|
||
try: | ||
devicon_json = filehandler.get_json_file_content(args.devicon_json_path) | ||
svgs = filehandler.get_svgs_paths(devicon_json, args.icons_folder_path) | ||
util.check_svgs(svgs) | ||
print("All SVGs found were good. Task completed.") | ||
except Exception as e: | ||
util.exit_with_err(e) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Check SVGs Monthly | ||
on: workflow_dispatch | ||
# schedule: | ||
# - cron: '0 0 1 * *' | ||
jobs: | ||
check_develop: | ||
name: Check the SVGs' quality in the `develop` branch | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
ref: develop | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Run the check_svg script | ||
run: > | ||
python ./.github/scripts/check_svgs_monthly.py ./devicon.json ./icons | ||
check_master: | ||
name: Check the SVGs' quality in the `master` branch | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
|
||
- uses: actions/checkout@v2 # check out default branch, which is master | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Run the check_svg script | ||
run: > | ||
python ./.github/scripts/check_svgs_monthly.py ./icomoon.json ./devicon.json ./icons |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
.github/scripts/build_assets/github_env.py → .github/scripts/build_assets/util.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.