-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(docs): use develop branch instead of main * chore(workflows): change to develop * chore(.changeset): change baseBranch to develop * feat(workflows): trigger sync-develop-to-main workflow after publish * feat(workflow): add sync develop to main workflow * chore(workflows): add back "or Publish to NPM" * refactor(workflows): rename tag name from dev to canary * refactor: rename dev to canary * refactor: reaname develop to canary * refactor(workflows): change from develop to canary
- Loading branch information
Showing
7 changed files
with
67 additions
and
15 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: QA | |
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- canary | ||
|
||
jobs: | ||
build: | ||
|
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,43 @@ | ||
name: Sync Canary to Main | ||
|
||
on: | ||
# triggered manually in Github | ||
workflow_dispatch: | ||
# triggered by the type "sync-canary-to-main" (e.g. from release action after publishing) | ||
repository_dispatch: | ||
types: [sync-canary-to-main] | ||
|
||
jobs: | ||
create_pull_request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Ensure all history is fetched | ||
|
||
- name: Create Pull Request | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
source_branch: "canary" | ||
destination_branch: "main" | ||
pr_title: "Auto-sync Canary to Main" | ||
pr_body: | | ||
## Automated: Sync from Canary to Main | ||
This Pull Request is automatically generated to sync the changes from the Canary branch to the Main branch. Below are the included updates: | ||
### Triggered by a Direct Push to Canary: | ||
- Please check the recent commits on the Canary branch directly as this sync may include multiple changes. | ||
### Triggered by a Pull Request Merge: | ||
- Merged Pull Request: [PR#${{ github.event.pull_request.number }}](${{ github.event.pull_request.html_url }}) - ${{ github.event.pull_request.title }} | ||
- PR Description: ${{ github.event.pull_request.body }} | ||
- Merged by: ${{ github.event.pull_request.merged_by.login }} | ||
### Action Required: | ||
- Please review the changes carefully. | ||
- Approve and merge the Pull Request if everything is in order. | ||
Thank you for maintaining the Main branch updated and clean. |
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