1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-22 06:03:14 +02:00

Changed build_icons.yml to trigger on label added and create new pr

This commit is contained in:
Thomas Bui
2020-09-30 13:53:20 -07:00
parent 1973e3f3be
commit 32065ae96f

View File

@@ -1,13 +1,10 @@
name: Build Icons
on:
pull_request:
branches:
- master
push:
branches:
- master
label:
type: [created,edited]
jobs:
build:
if: github.event.label.name == 'bot: build'
name: Get Fonts From Icomoon
runs-on: windows-2019
steps:
@@ -33,10 +30,12 @@ jobs:
with:
name: geckodriver-log
path: ./geckodriver.log
- name: Running gulp default task for building devicon.min.css
run: |
gulp default
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
- name: Running npm task for building devicon.min.css
run: npm run build-css
- name: Create new branch and push it
uses: technote-space/create-pr-action@v2
with:
commit_message: Build new icons, icomoon.json and devicon.css
COMMIT_MESSAGE: "Built new icons, icomoon.json and devicon.css"
PR_BRANCH_PREFIX: "build/feature/"
PR_BRANCH_NAME: "test-123"
PR_TITLE: "Built new icons, icomoon.json and devicon.css"