Skip to content

Commit 8f863d6

Browse files
authored
Merge pull request #301 from devicons/upgrade-workflow
Changed build_icons.yml to trigger on label added and create new pr
2 parents 3bc1d9a + a34f7fd commit 8f863d6

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/build_icons.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
name: Build Icons
22
on:
33
pull_request:
4-
branches:
5-
- master
6-
push:
7-
branches:
8-
- master
4+
types: [labeled]
95
jobs:
106
build:
117
name: Get Fonts From Icomoon
8+
if: contains(github.event.pull_request.labels.*.name, 'bot:build')
129
runs-on: windows-2019
1310
steps:
1411
- uses: actions/checkout@v2
@@ -33,10 +30,15 @@ jobs:
3330
with:
3431
name: geckodriver-log
3532
path: ./geckodriver.log
36-
- name: Running gulp default task for building devicon.min.css
37-
run: |
38-
gulp default
39-
- name: Commit changes
40-
uses: stefanzweifel/git-auto-commit-action@v4
33+
- name: Running npm task for building devicon.min.css
34+
if: ${{ success() }}
35+
run: npm run build-css
36+
- name: Create Pull Request
37+
if: ${{ success() }}
38+
uses: peter-evans/create-pull-request@v3
4139
with:
42-
commit_message: Build new icons, icomoon.json and devicon.css
40+
branch: ${{ format('build/{0}', github.head_ref) }}
41+
commit-message: 'Built new icons, icomoon.json and devicon.css'
42+
title: 'bot:build new icons, icomoon.json and devicon.css'
43+
body: 'Automated font-building task ran by GitHub Actions bot'
44+
delete-branch: true

fonts/devicon.eot

0 Bytes
Binary file not shown.

fonts/devicon.ttf

0 Bytes
Binary file not shown.

fonts/devicon.woff

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)