File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,22 +26,32 @@ jobs:
2626 with :
2727 name : geckodriver-log
2828 path : ./geckodriver.log
29- - name : Upload screenshot of the newly made icons
30- uses : actions/upload-artifact@v2
31- if : ${{success()}}
32- with :
33- name : new_icons
34- path : ./new_icons.png
3529 - name : Build devicon.min.css
3630 if : ${{ success() }}
3731 run : npm run build-css
32+ - name : Upload screenshot of the newly made icons
33+ id : imgur_step
34+ uses : devicons/public-upload-to-imgur@v1
35+ if : ${{success()}}
36+ with :
37+ img_path : ./new_icons.png
38+ client_id : ${{secrets.IMGUR_CLIENT_ID}}
3839 - name : Create Pull Request
3940 if : ${{ success() }}
4041 uses : peter-evans/create-pull-request@v3
42+ env :
43+ MESSAGE : |
44+ Automated font-building task ran by GitHub Actions bot. This PR built new font files and devicon.css file.
45+
46+ Here are all the files that were built:
47+
48+ 
49+
50+ More information can be found in the GitHub Action logs for this workflow.
4151 with :
4252 branch : ' master-build-result'
4353 base : ' master'
4454 commit-message : ' Built new icons, icomoon.json and devicon.css'
4555 title : ' bot:build new icons, icomoon.json and devicon.css'
46- body : ' Automated font-building task ran by GitHub Actions bot '
56+ body : ${{ format(env.MESSAGE, steps.imgur_step.outputs.imgur_url ) }}
4757 delete-branch : true
Original file line number Diff line number Diff line change 3030 path : ./geckodriver.log
3131 - name : Upload screenshot of the newly made icons
3232 id : imgur_step
33- uses : Thomas-Boi /public-upload-to-imgur@v1
33+ uses : devicons /public-upload-to-imgur@v1
3434 if : ${{success()}}
3535 with :
3636 img_path : ./new_icons.png
@@ -39,24 +39,16 @@ jobs:
3939 uses : github-actions-up-and-running/pr-comment@v1.0.1
4040 env :
4141 IMG_URL : ${{ steps.imgur_step.outputs.imgur_url }}
42- MESSAGE : >
42+ MESSAGE : |
4343 Hi!
4444
45-
4645 I'm Devicons' Peek Bot and I just peeked at the icons that you wanted to add using [icomoon.io](https://icomoon.io/app/#/select).
47-
4846 Here is the result below:
4947
50-
5148 
5249
53-
5450 Note: If the image doesn't show up, it's probably because it has been autodeleted by Imgur after 6 months due to our API choice.
5551
56-
57- Here is [the url]({1}).
58-
59-
6052 The maintainers will now take a look at it and decide whether to merge your PR.
6153
6254 Cheers :),
You can’t perform that action at this time.
0 commit comments