Skip to content

Commit 4ec9d85

Browse files
committed
Updated the workflow yaml to use the new repo
1 parent 426d950 commit 4ec9d85

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

.github/workflows/build_icons.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff 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+
![Files Built]({0})
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

.github/workflows/peek_icons.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
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
![Peeked Icons (top left)]({0})
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 :),

0 commit comments

Comments
 (0)