Skip to content

Commit

Permalink
Merge pull request #40 from tj-actions/upgraded-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Mar 11, 2021
2 parents eb559a8 + 057be7f commit 1fca498
Show file tree
Hide file tree
Showing 5 changed files with 1,195 additions and 1,938 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,6 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Get branch names
id: branch-name
uses: tj-actions/[email protected]
- name: Config
if: steps.branch-name.outputs.is_default == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Pull files
if: steps.branch-name.outputs.is_default == 'true'
run: |
git config pull.rebase true
git pull
- run: |
yarn
- run: |
Expand All @@ -46,14 +33,16 @@ jobs:
- name: Commit files
if: steps.changed_files.outputs.files_changed == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add dist
git commit -m "Modified dist assets."
- name: Push changes
if: steps.changed_files.outputs.files_changed == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ steps.branch-name.outputs.current_branch }}
github_token: ${{ secrets.PAT_TOKEN }}
branch: ${{ github.head_ref }}
- name: Upload build assets
uses: actions/upload-artifact@v2
with:
Expand Down
Loading

0 comments on commit 1fca498

Please sign in to comment.