mirror of
https://github.com/konpa/devicon.git
synced 2025-08-17 12:00:56 +02:00
Merge pull request #398 from devicons/TB_actionTest
Add the public-upload-to-imgur action
This commit is contained in:
24
.github/workflows/build_icons.yml
vendored
24
.github/workflows/build_icons.yml
vendored
@@ -26,22 +26,32 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: geckodriver-log
|
name: geckodriver-log
|
||||||
path: ./geckodriver.log
|
path: ./geckodriver.log
|
||||||
- name: Upload screenshot of the newly made icons
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
if: ${{success()}}
|
|
||||||
with:
|
|
||||||
name: new_icons
|
|
||||||
path: ./new_icons.png
|
|
||||||
- name: Build devicon.min.css
|
- name: Build devicon.min.css
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
run: npm run build-css
|
run: npm run build-css
|
||||||
|
- name: Upload screenshot of the newly made icons
|
||||||
|
id: imgur_step
|
||||||
|
uses: devicons/public-upload-to-imgur@v1
|
||||||
|
if: ${{success()}}
|
||||||
|
with:
|
||||||
|
img_path: ./new_icons.png
|
||||||
|
client_id: ${{secrets.IMGUR_CLIENT_ID}}
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
|
env:
|
||||||
|
MESSAGE: |
|
||||||
|
Automated font-building task ran by GitHub Actions bot. This PR built new font files and devicon.css file.
|
||||||
|
|
||||||
|
Here are all the files that were built:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
More information can be found in the GitHub Action logs for this workflow.
|
||||||
with:
|
with:
|
||||||
branch: 'master-build-result'
|
branch: 'master-build-result'
|
||||||
base: 'master'
|
base: 'master'
|
||||||
commit-message: 'Built new icons, icomoon.json and devicon.css'
|
commit-message: 'Built new icons, icomoon.json and devicon.css'
|
||||||
title: 'bot:build new icons, icomoon.json and devicon.css'
|
title: 'bot:build new icons, icomoon.json and devicon.css'
|
||||||
body: 'Automated font-building task ran by GitHub Actions bot'
|
body: ${{ format(env.MESSAGE, steps.imgur_step.outputs.imgur_url ) }}
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
39
.github/workflows/peek_icons.yml
vendored
39
.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,31 @@ 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
|
||||||
uses: actions/upload-artifact@v2
|
id: imgur_step
|
||||||
|
uses: devicons/public-upload-to-imgur@v1
|
||||||
if: ${{success()}}
|
if: ${{success()}}
|
||||||
with:
|
with:
|
||||||
name: new_icons
|
img_path: ./new_icons.png
|
||||||
path: ./new_icons.png
|
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 just peeked at the icons that you wanted to add and upload them to the
|
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).
|
||||||
# [Actions page](https://github.com/devicons/devicon/actions). The maintainers
|
Here is the result below:
|
||||||
# will now take a look at it and decide whether to merge your PR.
|
|
||||||
|
|
||||||
# Cheers :),
|

|
||||||
|
|
||||||
# Bot
|
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.
|
||||||
|
|
||||||
|
The maintainers will now take a look at it and decide whether to merge your PR.
|
||||||
|
|
||||||
|
Cheers :),
|
||||||
|
|
||||||
|
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