mirror of
https://github.com/konpa/devicon.git
synced 2025-09-02 19:02:46 +02:00
Changed the pr action, trigger and added proper if check
This commit is contained in:
21
.github/workflows/build_icons.yml
vendored
21
.github/workflows/build_icons.yml
vendored
@@ -1,11 +1,11 @@
|
|||||||
name: Build Icons
|
name: Build Icons
|
||||||
on:
|
on:
|
||||||
label:
|
pull_request:
|
||||||
type: [created,edited]
|
types: [labeled]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.event.label.name == 'bot: build'
|
|
||||||
name: Get Fonts From Icomoon
|
name: Get Fonts From Icomoon
|
||||||
|
if: contains(github.event.pull_request.labels.*.name, 'bot:build')
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -31,11 +31,14 @@ jobs:
|
|||||||
name: geckodriver-log
|
name: geckodriver-log
|
||||||
path: ./geckodriver.log
|
path: ./geckodriver.log
|
||||||
- name: Running npm task for building devicon.min.css
|
- name: Running npm task for building devicon.min.css
|
||||||
|
if: ${{ success() }}
|
||||||
run: npm run build-css
|
run: npm run build-css
|
||||||
- name: Create new branch and push it
|
- name: Create Pull Request
|
||||||
uses: technote-space/create-pr-action@v2
|
if: ${{ success() }}
|
||||||
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
COMMIT_MESSAGE: "Built new icons, icomoon.json and devicon.css"
|
branch: 'build/feature/test-123'
|
||||||
PR_BRANCH_PREFIX: "build/feature/"
|
commit-message: 'Built new icons, icomoon.json and devicon.css'
|
||||||
PR_BRANCH_NAME: "test-123"
|
title: 'bot:build new icons, icomoon.json and devicon.css'
|
||||||
PR_TITLE: "Built new icons, icomoon.json and devicon.css"
|
body: 'Automated font-building task ran by GitHub Actions bot'
|
||||||
|
delete-branch: true
|
||||||
|
Reference in New Issue
Block a user