forked from devicons/devicon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request devicons#560 from devicons/develop
Release v2.11.0
- Loading branch information
Showing
62 changed files
with
1,048 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,21 +35,21 @@ jobs: | |
with: | ||
path: ./svg_err_messages/svg_err_messages.txt | ||
|
||
- name: Comment on the PR about the result - Success | ||
uses: jungwinter/comment@v1 # let us comment on a specific PR | ||
if: success() && steps.err_message_reader.outputs.content == '1' | ||
env: | ||
MESSAGE: | | ||
Hi! | ||
I'm Devicons' SVG-Checker Bot and everything looks great. Good job! | ||
# - name: Comment on the PR about the result - Success | ||
# uses: jungwinter/comment@v1 # let us comment on a specific PR | ||
# if: success() && steps.err_message_reader.outputs.content == '1' | ||
# env: | ||
# MESSAGE: | | ||
# Hi! | ||
# I'm Devicons' SVG-Checker Bot and everything looks great. Good job! | ||
|
||
Have a nice day, | ||
SVG-Checker Bot :grin: | ||
with: | ||
type: create | ||
issue_number: ${{ steps.pr_num_reader.outputs.content }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: ${{ env.MESSAGE }} | ||
# Have a nice day, | ||
# SVG-Checker Bot :grin: | ||
# with: | ||
# type: create | ||
# issue_number: ${{ steps.pr_num_reader.outputs.content }} | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# body: ${{ env.MESSAGE }} | ||
|
||
- name: Comment on the PR about the result - SVG Error | ||
uses: jungwinter/comment@v1 # let us comment on a specific PR | ||
|
@@ -79,6 +79,11 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: ${{ format(env.MESSAGE, steps.err_message_reader.outputs.content) }} | ||
|
||
# if we posted error messages before, we fail this entire workflow | ||
- name: Fail workflow is there is an error. | ||
uses: cutenode/[email protected] | ||
if: success() && (steps.err_message_reader.outputs.content != '0' && steps.err_message_reader.outputs.content != '1') | ||
|
||
- name: Comment on the PR about the result - Failure | ||
uses: jungwinter/comment@v1 # let us comment on a specific PR | ||
if: failure() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,16 @@ jobs: | |
post_screenshots_in_comment: | ||
name: Post the screenshot | ||
runs-on: ubuntu-18.04 | ||
if: github.event.action == 'completed' && github.event.workflow_run.conclusion != 'skipped' | ||
env: | ||
# three possible values: 'skipped', 'success', 'failure' | ||
# have to print github.event to console to see these values | ||
# note: can't use this env variable up in the if statement above for some reason. | ||
# I don't think it's an ordering issue cause it seems 'if' is auto evaluate first | ||
PEEK_STATUS: ${{ github.event.workflow_run.conclusion }} | ||
steps: | ||
- name: Check if the trigger run worked. If not, fail the current run. | ||
if: github.event.workflow_run.conclusion != 'success' | ||
uses: cutenode/[email protected] | ||
- name: Check state of last run | ||
run: echo $PEEK_STATUS | ||
|
||
- name: Download workflow artifact | ||
uses: dawidd6/[email protected] | ||
|
@@ -21,14 +27,14 @@ jobs: | |
run_id: ${{ github.event.workflow_run.id }} | ||
|
||
- name: Read the pr_num file | ||
if: success() | ||
id: pr_num_reader | ||
uses: juliangruber/[email protected] | ||
with: | ||
path: ./pr_num/pr_num.txt | ||
|
||
- name: Upload screenshot of the newly made icons gotten from the artifacts | ||
id: icons_overview_img_step | ||
if: env.PEEK_STATUS == 'success' && success() | ||
uses: devicons/[email protected] | ||
with: | ||
path: ./screenshots/new_icons.png | ||
|
@@ -37,22 +43,20 @@ jobs: | |
- name: Upload zoomed in screenshot of the newly made icons gotten from the artifacts | ||
id: icons_detailed_img_step | ||
uses: devicons/[email protected] | ||
if: success() | ||
if: env.PEEK_STATUS == 'success' && success() | ||
with: | ||
path: ./screenshots/screenshot_*.png | ||
client_id: ${{secrets.IMGUR_CLIENT_ID}} | ||
|
||
- name: Comment on the PR about the result - Success | ||
uses: jungwinter/comment@v1 # let us comment on a specific PR | ||
if: success() | ||
if: env.PEEK_STATUS == 'success' && success() | ||
env: | ||
OVERVIEW_IMG_MARKDOWN: ${{ fromJSON(steps.icons_overview_img_step.outputs.markdown_urls)[0] }} | ||
DETAILED_IMGS_MARKDOWN: ${{ join(fromJSON(steps.icons_detailed_img_step.outputs.markdown_urls), '') }} | ||
MESSAGE: | | ||
Hi there, | ||
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). | ||
Here is the result below: | ||
Here is the result below (top right): | ||
{0} | ||
|
@@ -71,10 +75,13 @@ jobs: | |
type: create | ||
issue_number: ${{ steps.pr_num_reader.outputs.content }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: ${{format(env.MESSAGE, env.OVERVIEW_IMG_MARKDOWN, env.DETAILED_IMGS_MARKDOWN)}} | ||
body: > | ||
${{ format(env.MESSAGE, | ||
fromJSON(steps.icons_overview_img_step.outputs.markdown_urls)[0], | ||
join(fromJSON(steps.icons_detailed_img_step.outputs.markdown_urls), '')) }} | ||
- name: Comment on the PR about the result - Failure | ||
if: failure() || cancelled() | ||
if: failure() || env.PEEK_STATUS == 'failure' | ||
uses: jungwinter/comment@v1 # let us comment on a specific PR | ||
env: | ||
MESSAGE: | | ||
|
@@ -88,7 +95,7 @@ jobs: | |
- Your icon information has been added to the `devicon.json` as seen [here](https://github.com/devicons/devicon/blob/master/CONTRIBUTING.md#updateDevicon) | ||
- Your PR title follows the format seen [here](https://github.com/devicons/devicon/blob/master/CONTRIBUTING.md#overview) | ||
Once everything is fixed, I will try. If I still fail (sorry!), the maintainers will investigate further. | ||
I will retry once everything is fixed. If I still fail (sorry!) or there are other erros, the maintainers will investigate. | ||
Best of luck, | ||
Peek Bot :relaxed: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'Stale' | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@main | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-pr-message: 'Hello there, | ||
we noticed that this PR has been inactive for a while now. If there are any changes which are suitable for our repository, | ||
we would love to have it. It would be great if you can continue with this PR, but if you cannot, we might fork your changes and merge the changes ourselves. | ||
Since GitHub tracks contributions by commits, you will still be credited. | ||
Let us know what you think 😃' | ||
stale-pr-label: 'stale' | ||
days-before-pr-stale: 30 | ||
days-before-pr-close: -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.