mirror of
https://github.com/konpa/devicon.git
synced 2025-08-22 22:24:43 +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
|
name: Build Icons
|
||||||
on:
|
on:
|
||||||
pull_request:
|
label:
|
||||||
branches:
|
type: [created,edited]
|
||||||
- master
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: github.event.label.name == 'bot: build'
|
||||||
name: Get Fonts From Icomoon
|
name: Get Fonts From Icomoon
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
@@ -33,10 +30,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: geckodriver-log
|
name: geckodriver-log
|
||||||
path: ./geckodriver.log
|
path: ./geckodriver.log
|
||||||
- name: Running gulp default task for building devicon.min.css
|
- name: Running npm task for building devicon.min.css
|
||||||
run: |
|
run: npm run build-css
|
||||||
gulp default
|
- name: Create new branch and push it
|
||||||
- name: Commit changes
|
uses: technote-space/create-pr-action@v2
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
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