Skip to content

Commit 59c54db

Browse files
committed
Adding conditions to run generator and minifier
1 parent 4161008 commit 59c54db

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,33 @@ jobs:
1313
uses: actions/checkout@master
1414
- name: Get the list of modified files only
1515
uses: technote-space/get-diff-action@v1
16+
with:
17+
PREFIX_FILTER: |
18+
installers
1619
- name: Generate installers, update README.md & installers.toml
1720
run: |
1821
pip install toml
1922
pip install pytablewriter
2023
python generate.py ${{ env.GIT_DIFF }}
24+
if: env.GIT_DIFF
2125
- name: Minify generated installers
2226
run: ./minify.sh ${{ env.GIT_DIFF }}
27+
if: env.GIT_DIFF
2328
- name: Create a pull request for README.md & installers.toml updates
2429
uses: peter-evans/create-pull-request@v3
2530
with:
2631
commit-message: update README.md & installers.toml
2732
title: Update README.md & installers.toml
2833
body: Update README.md & installers.toml for the changes to the installer scripts
2934
branch: update-readme-md-and-installers-toml
35+
if: env.GIT_DIFF
3036
- name: Archive Production Artifact
3137
uses: actions/upload-artifact@master
3238
with:
3339
name: installers
3440
path: installers
41+
if: env.GIT_DIFF
42+
3543
deploy:
3644
name: Deploy
3745
needs: build

0 commit comments

Comments
 (0)