generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from tj-actions/upgraded-jest
- Loading branch information
Showing
5 changed files
with
1,195 additions
and
1,938 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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: | ||
|
Oops, something went wrong.