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:
23
.github/workflows/build_icons.yml
vendored
23
.github/workflows/build_icons.yml
vendored
@@ -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"
|
||||
|
Reference in New Issue
Block a user