mirror of
https://github.com/konpa/devicon.git
synced 2025-08-16 11:35:11 +02:00
Added pr comment action
This commit is contained in:
37
.github/workflows/peek_icons.yml
vendored
37
.github/workflows/peek_icons.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
- name: Install dependencies (python, pip)
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r ./.github/scripts/requirements.txt
|
pip install -r ./.github/scripts/requirements.txt
|
||||||
@@ -29,22 +29,35 @@ jobs:
|
|||||||
name: geckodriver-log
|
name: geckodriver-log
|
||||||
path: ./geckodriver.log
|
path: ./geckodriver.log
|
||||||
- name: Upload screenshot of the newly made icons
|
- name: Upload screenshot of the newly made icons
|
||||||
|
id: imgur_step
|
||||||
uses: Thomas-Boi/public-upload-to-imgur@v1
|
uses: Thomas-Boi/public-upload-to-imgur@v1
|
||||||
if: ${{success()}}
|
if: ${{success()}}
|
||||||
with:
|
with:
|
||||||
img_path: ./new_icons.png
|
img_path: ./new_icons.png
|
||||||
client_id: ${{secrets.IMGUR_CLIENT_ID}}
|
client_id: ${{secrets.IMGUR_CLIENT_ID}}
|
||||||
# - name: Comment on the PR about the result
|
- name: Comment on the PR about the result
|
||||||
# uses: github-actions-up-and-running/pr-comment@v1.0.1
|
uses: github-actions-up-and-running/pr-comment@v1.0.1
|
||||||
# with:
|
env:
|
||||||
# repo-token: ${{ secrets.GITHUB_TOKEN }}
|
IMG_URL: ${{ steps.imgur_step.outputs.imgur_url }}
|
||||||
# message: >
|
MESSAGE: >
|
||||||
# Hi! I'm Devicons' GitHub Actions Bot!
|
Hi! I'm Devicons' Peek Bot!
|
||||||
|
|
||||||
# I just peeked at the icons that you wanted to add and upload them to the
|
I just peeked at the icons that you wanted to add using [icomoon.io](https://icomoon.io/app/#/select).
|
||||||
# [Actions page](https://github.com/devicons/devicon/actions). The maintainers
|
|
||||||
# will now take a look at it and decide whether to merge your PR.
|
|
||||||
|
|
||||||
# Cheers :),
|
Here is the result below:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
Here is [the url]({1}).
|
||||||
|
|
||||||
|
|
||||||
|
The maintainers will now take a look at it and decide whether to merge your PR.
|
||||||
|
|
||||||
|
Cheers :),
|
||||||
|
|
||||||
# Bot
|
Peek Bot
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
message: ${{format(env.MESSAGE, env.IMG_URL, env.IMG_URL)}}
|
||||||
|
Reference in New Issue
Block a user