Skip to content

Commit

Permalink
Added push step to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Jun 12, 2023
1 parent d150081 commit d66a99d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build_react_previewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,15 @@ jobs:
uses: actions/setup-node@v3
- name: Run script and build apps
run: python3 ./.github/scripts/build_previewers.py
- name: Push built previewers
run: |
if [[ `git status --porcelain` ]]; then
git add --all
git config --global user.name 'Previewer Builder'
git config --global user.email 'builder@bot.com'
git commit -am "Previewer update"
git push
else
echo "Nothing changed!"
fi

0 comments on commit d66a99d

Please sign in to comment.