mirror of
https://github.com/konpa/devicon.git
synced 2025-08-11 00:54:36 +02:00
Merge pull request #301 from devicons/upgrade-workflow
Changed build_icons.yml to trigger on label added and create new pr
This commit is contained in:
24
.github/workflows/build_icons.yml
vendored
24
.github/workflows/build_icons.yml
vendored
@@ -1,14 +1,11 @@
|
||||
name: Build Icons
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
types: [labeled]
|
||||
jobs:
|
||||
build:
|
||||
name: Get Fonts From Icomoon
|
||||
if: contains(github.event.pull_request.labels.*.name, 'bot:build')
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -33,10 +30,15 @@ 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
|
||||
if: ${{ success() }}
|
||||
run: npm run build-css
|
||||
- name: Create Pull Request
|
||||
if: ${{ success() }}
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
commit_message: Build new icons, icomoon.json and devicon.css
|
||||
branch: ${{ format('build/{0}', github.head_ref) }}
|
||||
commit-message: 'Built new icons, icomoon.json and devicon.css'
|
||||
title: 'bot:build new icons, icomoon.json and devicon.css'
|
||||
body: 'Automated font-building task ran by GitHub Actions bot'
|
||||
delete-branch: true
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user