1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-15 02:56:12 +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:
Thomas Bui
2020-10-09 09:32:03 -07:00
committed by GitHub
4 changed files with 13 additions and 11 deletions

View File

@@ -1,14 +1,11 @@
name: Build Icons name: Build Icons
on: on:
pull_request: pull_request:
branches: types: [labeled]
- master
push:
branches:
- master
jobs: jobs:
build: 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
@@ -33,10 +30,15 @@ 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: | if: ${{ success() }}
gulp default run: npm run build-css
- name: Commit changes - name: Create Pull Request
uses: stefanzweifel/git-auto-commit-action@v4 if: ${{ success() }}
uses: peter-evans/create-pull-request@v3
with: 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.