-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add job for creating PR updating production env (#458)
Once some changes land on `stage-live` branch, we'll automatically create a PR that wants to merge those changes to the `release` branch. Upon merging such PR the production environment will be updated.
- Loading branch information
Showing
2 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
name: Update staging and production environments | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
sync-main-to-stage-live: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Open/update a PR from `main` to `stage-live` | ||
id: pull | ||
uses: tretuna/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
FROM_BRANCH: "main" | ||
TO_BRANCH: "stage-live" | ||
PULL_REQUEST_TITLE: "Update stage environments" | ||
PULL_REQUEST_BODY: "This is a pull request that upon merging will update stage environments with recent `main` changes." | ||
REVIEWERS: '["andreachapman"]' | ||
sync-stage-live-to-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Open/update a PR from `main` to `stage-live` | ||
id: pull | ||
uses: tretuna/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
FROM_BRANCH: "stage-live" | ||
TO_BRANCH: "release" | ||
PULL_REQUEST_TITLE: "Update release branch" | ||
PULL_REQUEST_BODY: "This is a pull request that upon merging will update production environment with recent `stage-live` changes." | ||
TEAM_REVIEWERS: '["tahowallet/extension-devs"]' |