@@ -23,35 +23,39 @@ jobs:
2323 - name : Run icomoon_peek.py
2424 env :
2525 PR_TITLE : ${{ github.event.pull_request.title }}
26+ shell : cmd
2627 run : >
2728 python ./.github/scripts/icomoon_peek.py
2829 ./.github/scripts/build_assets/geckodriver-v0.27.0-win64/geckodriver.exe ./icomoon.json
29- ./devicon.json ./icons ./ --headless --pr_title $ PR_TITLE
30+ ./devicon.json ./icons ./ --headless --pr_title "% PR_TITLE%"
3031 - name : Upload geckodriver.log for debugging purposes
3132 uses : actions/upload-artifact@v2
32- if : ${{ failure()}}
33+ if : failure()
3334 with :
3435 name : geckodriver-log
3536 path : ./geckodriver.log
3637 - name : Upload screenshot of the newly made icons
3738 id : new_icons_overview_step
38- uses : devicons/public-upload-to-imgur@v1.1
39- if : ${{ success()}}
39+ uses : devicons/public-upload-to-imgur@main
40+ if : success()
4041 with :
41- img_path : ./screenshots/new_icons.png
42+ path : ./screenshots/new_icons.png
4243 client_id : ${{secrets.IMGUR_CLIENT_ID}}
4344 - name : Upload zoomed in screenshot of the newly made icons
4445 id : new_icons_detailed_step
45- uses : devicons/public-upload-to-imgur@v1.1
46- if : ${{ success()}}
46+ uses : devicons/public-upload-to-imgur@main
47+ if : success()
4748 with :
48- img_path : ./screenshots/screenshot_*.png
49+ path : ./screenshots/screenshot_*.png
4950 client_id : ${{secrets.IMGUR_CLIENT_ID}}
50- - name : Generate the markdowns for the screenshot
51- run : |
51+ - name : Generate the markdowns for the screenshot and put it in the DETAILED_IMGS_MARKDOWN env var
52+ env :
53+ IMG_URLS : ${{ steps.new_icons_detailed_step.outputs.img_url }}
54+ run : |
5255 echo "DETAILED_IMGS_MARKDOWN<<EOF" >> $GITHUB_ENV
53- python ./.github/scripts/generate_screenshot_markdown.py >> $GITHUB_ENV
56+ python ./.github/scripts/generate_screenshot_markdown.py "%IMG_URLS%" >> $GITHUB_ENV
5457 echo "EOF" >> $GITHUB_ENV
58+ shell : cmd
5559 - name : Comment on the PR about the result
5660 uses : github-actions-up-and-running/pr-comment@v1.0.1
5761 env :
0 commit comments