forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try removing fetch-depth 0 config to improve speed, add sync-branch w…
…orkflow
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Sync branch with master | ||
|
||
on: | ||
repository_dispatch: | ||
types: sync-branch | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Use node version 12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.client_payload.branch_name }} | ||
# This does a test post-merge and only pushes the result if the test succeeds | ||
# required client_payload members: | ||
# branch_name - the target branch | ||
- run: | | ||
git config user.email "ts_bot@rcavanaugh.com" | ||
git config user.name "TypeScript Bot" | ||
git fetch origin master | ||
git merge master --no-ff | ||
npm install | ||
npm test | ||
git push |