Skip to content

Commit

Permalink
Add job for creating PR updating production env (#458)
Browse files Browse the repository at this point in the history
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
jagodarybacka authored Oct 20, 2023
2 parents fec766b + 2d7aea5 commit 56789d9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/sync-staging-envs.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/update-environments.yml
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"]'

0 comments on commit 56789d9

Please sign in to comment.