File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build Icons
22on :
33 pull_request :
4- branches :
5- - master
6- push :
7- branches :
8- - master
4+ types : [labeled]
95jobs :
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
You can’t perform that action at this time.
0 commit comments