diff --git a/.github/workflows/build_icons.yml b/.github/workflows/build_icons.yml index 6c1f3611..b8511b74 100644 --- a/.github/workflows/build_icons.yml +++ b/.github/workflows/build_icons.yml @@ -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 diff --git a/fonts/devicon.eot b/fonts/devicon.eot index dbbb82a7..25c17e49 100755 Binary files a/fonts/devicon.eot and b/fonts/devicon.eot differ diff --git a/fonts/devicon.ttf b/fonts/devicon.ttf index e98690fd..223cafa0 100755 Binary files a/fonts/devicon.ttf and b/fonts/devicon.ttf differ diff --git a/fonts/devicon.woff b/fonts/devicon.woff index 8d07f1bb..ef977ed0 100755 Binary files a/fonts/devicon.woff and b/fonts/devicon.woff differ