From 32065ae96f1dde4e1270e42912edc60f370e7d65 Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Wed, 30 Sep 2020 13:53:20 -0700 Subject: [PATCH 1/4] Changed build_icons.yml to trigger on label added and create new pr --- .github/workflows/build_icons.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_icons.yml b/.github/workflows/build_icons.yml index 6c1f3611..7b329001 100644 --- a/.github/workflows/build_icons.yml +++ b/.github/workflows/build_icons.yml @@ -1,13 +1,10 @@ name: Build Icons on: - pull_request: - branches: - - master - push: - branches: - - master + label: + type: [created,edited] jobs: build: + if: github.event.label.name == 'bot: build' name: Get Fonts From Icomoon runs-on: windows-2019 steps: @@ -33,10 +30,12 @@ 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 + run: npm run build-css + - name: Create new branch and push it + uses: technote-space/create-pr-action@v2 with: - commit_message: Build new icons, icomoon.json and devicon.css + COMMIT_MESSAGE: "Built new icons, icomoon.json and devicon.css" + PR_BRANCH_PREFIX: "build/feature/" + PR_BRANCH_NAME: "test-123" + PR_TITLE: "Built new icons, icomoon.json and devicon.css" From ae7caa20fa68b460c5e52a1fa3abdb0ad36245bd Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Wed, 7 Oct 2020 10:31:56 -0700 Subject: [PATCH 2/4] Changed the pr action, trigger and added proper if check --- .github/workflows/build_icons.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_icons.yml b/.github/workflows/build_icons.yml index 7b329001..1b030037 100644 --- a/.github/workflows/build_icons.yml +++ b/.github/workflows/build_icons.yml @@ -1,11 +1,11 @@ name: Build Icons on: - label: - type: [created,edited] + pull_request: + types: [labeled] jobs: build: - if: github.event.label.name == 'bot: 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 @@ -31,11 +31,14 @@ jobs: name: geckodriver-log path: ./geckodriver.log - name: Running npm task for building devicon.min.css + if: ${{ success() }} run: npm run build-css - - name: Create new branch and push it - uses: technote-space/create-pr-action@v2 + - name: Create Pull Request + if: ${{ success() }} + uses: peter-evans/create-pull-request@v3 with: - COMMIT_MESSAGE: "Built new icons, icomoon.json and devicon.css" - PR_BRANCH_PREFIX: "build/feature/" - PR_BRANCH_NAME: "test-123" - PR_TITLE: "Built new icons, icomoon.json and devicon.css" + branch: 'build/feature/test-123' + 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 From 1059057bfaf703d559bcd3741ee4f95e7c8ff783 Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Thu, 8 Oct 2020 17:50:31 -0700 Subject: [PATCH 3/4] Changed built branch name to build/{{source}} --- .github/workflows/build_icons.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_icons.yml b/.github/workflows/build_icons.yml index 1b030037..b8511b74 100644 --- a/.github/workflows/build_icons.yml +++ b/.github/workflows/build_icons.yml @@ -37,7 +37,7 @@ jobs: if: ${{ success() }} uses: peter-evans/create-pull-request@v3 with: - branch: 'build/feature/test-123' + 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' From e5cd0efe19d2a982150054bcf1dd0dd2d453bf49 Mon Sep 17 00:00:00 2001 From: Thomas-Boi Date: Fri, 9 Oct 2020 00:53:05 +0000 Subject: [PATCH 4/4] Built new icons, icomoon.json and devicon.css --- fonts/devicon.eot | Bin 219836 -> 219836 bytes fonts/devicon.ttf | Bin 219672 -> 219672 bytes fonts/devicon.woff | Bin 219748 -> 219748 bytes 3 files changed, 0 insertions(+), 0 deletions(-) diff --git a/fonts/devicon.eot b/fonts/devicon.eot index dbbb82a7e357b3d71f49f2fe7e1b9a4f2c641493..25c17e4979f8846062be85bf0b70cd28f068b9ec 100755 GIT binary patch delta 67 zcmdn9m3Plp-U&7==XtjYPjuMI9K;vU_@ng)W9tv5tv{IG_{#`y<2@hGZ}XLbn}q=c QZZA!F1*5kGGVkF80H5?3<^TWy delta 67 zcmdn9m3Plp-U&7=+3MUP6CJiPt2Z_^{%HNd*!qKM>ksBP{xTxm>e=!9HeVUISr|az P_5`_R7`-i!c@HN5QwbLI diff --git a/fonts/devicon.ttf b/fonts/devicon.ttf index e98690fdfaca15ef19899a33948b9cbc37649ce4..223cafa09d49addc022052b7fd20a141b4d6f24b 100755 GIT binary patch delta 60 zcmbQSg?Gjl-U)%sL3{y?A*~^dtszWXLzv(A%Ls4dJs;0+^Ob>{g#iR^FHLy`qqoNd IFz?|60B&&Wxi}A*~^dtszWXLzv(A%ZPBRXUFr~d}ZKfVE}>K6Xcp<^!Atl H<~^JMRhJS_ diff --git a/fonts/devicon.woff b/fonts/devicon.woff index 8d07f1bbb35a36994e434a5505c36d985b38d2fc..ef977ed0cb68102ea4f0c1326d36ed5f18acf63f 100755 GIT binary patch delta 60 zcmaE|h4;x8-U+?TL3{y?6Iv%QwoYK$I)V9*zl`uU-t+PNHeVUISr|az_R^GBFnarn I0OmcM0Lk$dZU6uP delta 60 zcmaE|h4;x8-U+?T>Wxi}6Iv%QwoYK$I)V9*zl;dCdUia&%~u9)76uTwJwdJ+MsHsc Iz`TbO0I?SoZ~y=R