1616 uses : actions/setup-python@v2
1717 with :
1818 python-version : 3.8
19- - name : Install dependencies (python, pip)
19+ - name : Install dependencies
2020 run : |
2121 python -m pip install --upgrade pip
2222 pip install -r ./.github/scripts/requirements.txt
@@ -29,22 +29,31 @@ jobs:
2929 name : geckodriver-log
3030 path : ./geckodriver.log
3131 - name : Upload screenshot of the newly made icons
32- uses : actions/upload-artifact@v2
32+ id : imgur_step
33+ uses : devicons/public-upload-to-imgur@v1
3334 if : ${{success()}}
3435 with :
35- name : new_icons
36- path : ./new_icons.png
37- # - name: Comment on the PR about the result
38- # uses: github-actions-up-and-running/pr-comment@v1.0.1
39- # with:
40- # repo-token: ${{ secrets.GITHUB_TOKEN }}
41- # message: >
42- # Hi! I'm Devicons' GitHub Actions Bot!
43-
44- # I just peeked at the icons that you wanted to add and upload them to the
45- # [Actions page](https://github.com/devicons/devicon/actions). The maintainers
46- # will now take a look at it and decide whether to merge your PR.
36+ img_path : ./new_icons.png
37+ client_id : ${{secrets.IMGUR_CLIENT_ID}}
38+ - name : Comment on the PR about the result
39+ uses : github-actions-up-and-running/pr-comment@v1.0.1
40+ env :
41+ IMG_URL : ${{ steps.imgur_step.outputs.imgur_url }}
42+ MESSAGE : |
43+ Hi!
44+
45+ 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).
46+ Here is the result below:
47+
48+ 
4749
48- # Cheers :),
50+ 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.
51+
52+ The maintainers will now take a look at it and decide whether to merge your PR.
53+
54+ Cheers :),
4955
50- # Bot
56+ Peek Bot
57+ with :
58+ repo-token : ${{ secrets.GITHUB_TOKEN }}
59+ message : ${{format(env.MESSAGE, env.IMG_URL, env.IMG_URL)}}
0 commit comments