Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Jul 18, 2022
1 parent 22dfa14 commit 6385af7
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/update-playground.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update playground
name: Build playground

on:
workflow_run:
Expand All @@ -8,36 +8,14 @@ on:

jobs:
update-playground:
name: Update playground
name: Build playground
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Update react form in playground
run: |
cd examples
npm install @maif/react-forms@latest --save
env:
CI: "false"
- name: Commit files
run: |
git config --local user.email "github-actions@users.noreply.github.com"
git config --local user.name "github-actions"
git add --all
git commit -am "Update react-form version for playground"
- name: Push playground
uses: ad-m/github-push-action@master
with:
branch: main
github_token: ${{ secrets.GITHUB_TOKEN}}
build-playground:
name: Build playground
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
#build playground
- name: Build playground
run: |
cd examples
npm install
npm run build
env:
Expand All @@ -47,7 +25,7 @@ jobs:
git config --local user.email "github-actions@users.noreply.github.com"
git config --local user.name "github-actions"
git add --all
git commit -am "Update playground"
git commit -am "Update react-form version for playground"
- name: Push playground
uses: ad-m/github-push-action@master
with:
Expand Down

0 comments on commit 6385af7

Please sign in to comment.