Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarsceill authored Apr 24, 2020
1 parent 3407f6c commit bc04ce2
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,24 @@ jobs:
node-version: 10.x

- name: npm install, build, and test
- run: npm install
- run: npm test
- run: npm run format
- name: Add changed files
run: |
npm install
npm test
echo "https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git"
git config --global user.email [email protected]
git config --global user.name $GITHUB_ACTOR
echo "branch is ${{ steps.extract_branch.outputs.branch }}"
git checkout ${{ steps.extract_branch.outputs.branch }}
git add .
- name: Are there any updates?
shell: bash
run: echo "##[set-output name=status]$(git status -s)"
id: is_dirty
- name: Commit files
if: steps.is_dirty.outputs.status
run: |
echo ${{ steps.is_dirty.outputs.status }}
git commit -m "🎨 Prettier"
git push --force --set-upstream "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" ${{ steps.extract_branch.outputs.branch }}

0 comments on commit bc04ce2

Please sign in to comment.