mirror of
https://github.com/konpa/devicon.git
synced 2025-08-05 06:07:28 +02:00
Change comment action to a new action
This commit is contained in:
12
.github/workflows/check_svgs_on_pr.yml
vendored
12
.github/workflows/check_svgs_on_pr.yml
vendored
@@ -8,11 +8,7 @@ jobs:
|
|||||||
name: Check the SVGs' quality
|
name: Check the SVGs' quality
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
<<<<<<< HEAD:.github/workflows/check_svgs.yml
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
=======
|
|
||||||
- uses: actions/checkout@v2 # check out the merge branch of the PR and base
|
- uses: actions/checkout@v2 # check out the merge branch of the PR and base
|
||||||
>>>>>>> 132dff5... Create a monthly script that checks all svgs:.github/workflows/check_svgs_on_pr.yml
|
|
||||||
- name: Setup Python v3.8
|
- name: Setup Python v3.8
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
@@ -29,7 +25,7 @@ jobs:
|
|||||||
python ./.github/scripts/check_svgs_on_pr.py $HOME/files_added.json $HOME/files_modified.json
|
python ./.github/scripts/check_svgs_on_pr.py $HOME/files_added.json $HOME/files_modified.json
|
||||||
- name: Comment on the PR about the result - Success
|
- name: Comment on the PR about the result - Success
|
||||||
if: success()
|
if: success()
|
||||||
uses: github-actions-up-and-running/pr-comment@v1.0.1
|
uses: NejcZdovc/comment-pr@v1.1.1
|
||||||
env:
|
env:
|
||||||
MESSAGE: |
|
MESSAGE: |
|
||||||
Hi!
|
Hi!
|
||||||
@@ -40,11 +36,11 @@ jobs:
|
|||||||
Have a nice day,
|
Have a nice day,
|
||||||
SVG-Checker Bot :grin:
|
SVG-Checker Bot :grin:
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
message: ${{ env.MESSAGE }}
|
message: ${{ env.MESSAGE }}
|
||||||
- name: Comment on the PR about the result - Failed
|
- name: Comment on the PR about the result - Failed
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: github-actions-up-and-running/pr-comment@v1.0.1
|
uses: NejcZdovc/comment-pr@v1.1.1
|
||||||
env:
|
env:
|
||||||
MESSAGE: |
|
MESSAGE: |
|
||||||
Hi!
|
Hi!
|
||||||
@@ -65,5 +61,5 @@ jobs:
|
|||||||
|
|
||||||
PS. One day, I will be smart enough to fix these errors for you :persevere:. Until then, I can only point them out.
|
PS. One day, I will be smart enough to fix these errors for you :persevere:. Until then, I can only point them out.
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
message: ${{ format(env.MESSAGE, env.SVG_ERR_MSGS)}}
|
message: ${{ format(env.MESSAGE, env.SVG_ERR_MSGS)}}
|
||||||
|
Reference in New Issue
Block a user