55 name : Get Fonts From Icomoon
66 runs-on : ubuntu-latest
77 steps :
8- - uses : actions/checkout@v3
9- - uses : actions/setup-python@v4
10- with :
11- python-version : 3.8
8+ - uses : actions/checkout@v4
9+ - uses : actions/setup-python@v5
10+ with :
11+ python-version : ' 3.10 '
1212
1313 - name : Install dependencies (python, pip, npm)
1414 run : |
@@ -17,89 +17,80 @@ jobs:
1717 npm install
1818
1919 - name : Executing build and create fonts via icomoon
20+ shell : bash
2021 env :
2122 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2223 run : >
23- python ./.github/scripts/icomoon_build.py
24- ./.github/scripts/build_assets/geckodriver-v0.32.2-linux64/geckodriver ./icomoon.json
25- ./devicon.json ./icons ./ " $GITHUB_TOKEN" --headless
24+ python ./.github/scripts/icomoon_build.py
25+ ./.github/scripts/build_assets/geckodriver-v0.32.2-linux64/geckodriver ./icomoon.json
26+ ./devicon.json ./icons ./ $GITHUB_TOKEN --headless
2627
2728 - name : Upload geckodriver.log for debugging purposes
28- uses : actions/upload-artifact@v2
29+ uses : actions/upload-artifact@v4
2930 if : failure()
3031 with :
3132 name : geckodriver-log
3233 path : ./geckodriver.log
3334
3435 - name : Upload log file for debugging purposes
35- uses : actions/upload-artifact@v2
36+ uses : actions/upload-artifact@v4
3637 if : always()
3738 with :
3839 name : logfile
3940 path : ./log.txt
4041
4142 - name : Build devicon.min.css
42- if : success()
43+ if : success()
4344 run : npm run build-css
4445
45- - name : Upload screenshot of the newly made icons
46- id : imgur_step
47- uses : devicons/public-upload-to-imgur@v2.2.2
48- if : success()
49- with :
50- # will have "new_icons.png" and "new_svgs.png"
51- # in that order (cause sorted alphabetically)
52- path : ./screenshots/*.png
53- client_id : ${{secrets.IMGUR_CLIENT_ID}}
46+ # - name: Upload screenshot of the newly made icons
47+ # id: imgur_step
48+ # uses: devicons/public-upload-to-imgur@v2.2.2
49+ # if: success()
50+ # with:
51+ # # will have "new_icons.png" and "new_svgs.png"
52+ # # in that order (cause sorted alphabetically)
53+ # path: ./screenshots/*.png
54+ # client_id: ${{secrets.IMGUR_CLIENT_ID}}
5455
5556 - name : Get the release message from file
5657 id : release_message_step
5758 uses : juliangruber/read-file-action@v1.0.0
5859 with :
5960 # taken from icomoon_build.py's get_release_message()
60- path : ./release_message.txt
61+ path : ./release_message.txt
6162
6263 - name : Create Pull Request
63- if : success()
64- uses : peter-evans/create-pull-request@v3
64+ if : success()
65+ uses : peter-evans/create-pull-request@v7
6566 env :
6667 MESSAGE : |
6768 Hello,
6869
6970 I'm Devicon's Build Bot and I just built some new font files and devicon.min.css file.
7071
71- Here are all the **SVGs** that were uploaded (the new ones are those with highlight):
72-
73- {0}
74-
75- Here is what they look like as icons:
76-
77- {1}
78-
7972 The devicon.min.css file contains:
8073 -The icon content
8174 -The aliases
8275 -The colored classes
8376
8477 I also compiled a list of new features and icons that were added since last release.
8578 ```
86- {2 }
79+ {0 }
8780 ```
8881
8982 More information can be found in the GitHub Action logs for this workflow.
9083
91- Adios,
84+ Adios,
9285 Build Bot :sunglasses:
9386 with :
9487 branch : ' bot/build-result'
9588 commit-message : ' Built new icons, icomoon.json and devicon.css'
9689 title : ' bot:build new icons, icomoon.json and devicon.css'
9790 body : >
98- ${{
91+ ${{
9992 format(
10093 env.MESSAGE,
101- fromJSON(steps.imgur_step.outputs.markdown_urls)[1],
102- fromJSON(steps.imgur_step.outputs.markdown_urls)[0],
10394 steps.release_message_step.outputs.content
10495 )
10596 }}
0 commit comments