-
Notifications
You must be signed in to change notification settings - Fork 32
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 #514 from MicrosoftDocs/ci-automation
Update automerge.yml
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Daily PR Workflow | ||
name: Sync CI changes | ||
|
||
on: | ||
schedule: | ||
|
@@ -13,13 +13,19 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Checkout smoke-test branch | ||
run: | | ||
git fetch origin smoke-test | ||
git checkout smoke-test | ||
- name: Create PR from smoke-test to main | ||
id: create_pr_smoke_test | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git checkout smoke-test | ||
git checkout -b pr-smoke-test-to-main | ||
git push origin pr-smoke-test-to-main | ||
pr_number=$(gh pr create --base main --head pr-smoke-test-to-main --title "Daily PR from smoke-test to main" --body "Automated PR from smoke-test to main" --json number -q .number) | ||
|