1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-31 18:13:04 +02:00

Various bug fixes and reference update

This commit is contained in:
Thomas Bui
2020-12-29 15:11:28 -08:00
parent eb6884db84
commit 8a5ff05f01
8 changed files with 61 additions and 32 deletions

View File

@@ -25,22 +25,22 @@ jobs:
./devicon.json ./icons ./ --headless
- name: Upload geckodriver.log for debugging purposes
uses: actions/upload-artifact@v2
if: ${{failure()}}
if: failure()
with:
name: geckodriver-log
path: ./geckodriver.log
- name: Build devicon.min.css
if: ${{ success() }}
if: success()
run: npm run build-css
- name: Upload screenshot of the newly made icons
id: imgur_step
uses: devicons/public-upload-to-imgur@v1
if: ${{success()}}
uses: devicons/public-upload-to-imgur@v1.1.2
if: success()
with:
img_path: ./new_icons.png
path: ./new_icons.png
client_id: ${{secrets.IMGUR_CLIENT_ID}}
- name: Create Pull Request
if: ${{ success() }}
if: success()
uses: peter-evans/create-pull-request@v3
env:
MESSAGE: |

View File

@@ -23,35 +23,39 @@ jobs:
- name: Run icomoon_peek.py
env:
PR_TITLE: ${{ github.event.pull_request.title }}
shell: cmd
run: >
python ./.github/scripts/icomoon_peek.py
./.github/scripts/build_assets/geckodriver-v0.27.0-win64/geckodriver.exe ./icomoon.json
./devicon.json ./icons ./ --headless --pr_title $PR_TITLE
./devicon.json ./icons ./ --headless --pr_title "%PR_TITLE%"
- name: Upload geckodriver.log for debugging purposes
uses: actions/upload-artifact@v2
if: ${{failure()}}
if: failure()
with:
name: geckodriver-log
path: ./geckodriver.log
- name: Upload screenshot of the newly made icons
id: new_icons_overview_step
uses: devicons/public-upload-to-imgur@v1.1
if: ${{success()}}
uses: devicons/public-upload-to-imgur@main
if: success()
with:
img_path: ./screenshots/new_icons.png
path: ./screenshots/new_icons.png
client_id: ${{secrets.IMGUR_CLIENT_ID}}
- name: Upload zoomed in screenshot of the newly made icons
id: new_icons_detailed_step
uses: devicons/public-upload-to-imgur@v1.1
if: ${{success()}}
uses: devicons/public-upload-to-imgur@main
if: success()
with:
img_path: ./screenshots/screenshot_*.png
path: ./screenshots/screenshot_*.png
client_id: ${{secrets.IMGUR_CLIENT_ID}}
- name: Generate the markdowns for the screenshot
run: |
- name: Generate the markdowns for the screenshot and put it in the DETAILED_IMGS_MARKDOWN env var
env:
IMG_URLS: ${{ steps.new_icons_detailed_step.outputs.img_url }}
run: |
echo "DETAILED_IMGS_MARKDOWN<<EOF" >> $GITHUB_ENV
python ./.github/scripts/generate_screenshot_markdown.py >> $GITHUB_ENV
python ./.github/scripts/generate_screenshot_markdown.py "%IMG_URLS%" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
shell: cmd
- name: Comment on the PR about the result
uses: github-actions-up-and-running/pr-comment@v1.0.1
env: