Skip to content

Commit

Permalink
Merge pull request #16 from Heshdude/improving-automation
Browse files Browse the repository at this point in the history
Adding conditions to run generator and minifier
  • Loading branch information
Heshdude authored Aug 8, 2020
2 parents a1cae97 + 59c54db commit af0408d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,33 @@ jobs:
uses: actions/checkout@master
- name: Get the list of modified files only
uses: technote-space/get-diff-action@v1
with:
PREFIX_FILTER: |
installers
- name: Generate installers, update README.md & installers.toml
run: |
pip install toml
pip install pytablewriter
python generate.py ${{ env.GIT_DIFF }}
if: env.GIT_DIFF
- name: Minify generated installers
run: ./minify.sh ${{ env.GIT_DIFF }}
if: env.GIT_DIFF
- name: Create a pull request for README.md & installers.toml updates
uses: peter-evans/create-pull-request@v3
with:
commit-message: update README.md & installers.toml
title: Update README.md & installers.toml
body: Update README.md & installers.toml for the changes to the installer scripts
branch: update-readme-md-and-installers-toml
if: env.GIT_DIFF
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: installers
path: installers
if: env.GIT_DIFF

deploy:
name: Deploy
needs: build
Expand Down

0 comments on commit af0408d

Please sign in to comment.