-
Notifications
You must be signed in to change notification settings - Fork 14
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 #27 from ledgerleapllc/staging
Sync staging to master
- Loading branch information
Showing
61 changed files
with
1,856 additions
and
10,493 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,8 @@ | ||
# Default reviewers | ||
* @ledgerleapllc @jinli111 @ledgerleap1 | ||
|
||
# Reviewer for CICD related changes | ||
.github @bradjohnl | ||
ansible @bradjohnl | ||
|
||
|
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,45 @@ | ||
name: development to staging sync | ||
|
||
|
||
#Run workflow on successful merge to development | ||
on: | ||
push: | ||
branches: | ||
- development | ||
|
||
|
||
jobs: | ||
create-pull-request: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: tibdex/github-app-token@586e1a624db6a5a4ac2c53daeeded60c5e3d50fe | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.PRBOT_APP_ID }} | ||
private_key: ${{ secrets.PRBOT_APP_PRIVATE_KEY }} | ||
|
||
#Sync development branch to the staging branch to keep it updated | ||
- name: Set up Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
- name: Opening pull request | ||
id: pull | ||
uses: tretuna/sync-branches@ea58ab6e406fd3ad016a064b31270bbb41127f41 | ||
with: | ||
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} | ||
FROM_BRANCH: "development" | ||
TO_BRANCH: "staging" | ||
REVIEWERS: '["ledgerleapllc"]' | ||
CONTENT_COMPARISON: true | ||
PULL_REQUEST_BODY: "This PR is created by the PR Bot to sync the development branch to the staging branch. Please check the content changes also on the development site if you want. You can feel free to ignore this or approve + merge it. If you merge, the prod deployment will start automatically. If you ignore it, it will get renewed the next time a new feature gets merged to the development branch." | ||
PULL_REQUEST_TITLE: "Sync development to staging" | ||
|
||
#Display the pull request URL: | ||
- name: Display the pull request URL | ||
run: | | ||
echo "The pull request URL is: ${{ steps.pull.outputs.PULL_REQUEST_URL }}" |
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,45 @@ | ||
name: staging to master sync | ||
|
||
|
||
#Run workflow on successful merge to staging | ||
on: | ||
push: | ||
branches: | ||
- staging | ||
|
||
|
||
jobs: | ||
create-pull-request: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: tibdex/github-app-token@586e1a624db6a5a4ac2c53daeeded60c5e3d50fe | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.PRBOT_APP_ID }} | ||
private_key: ${{ secrets.PRBOT_APP_PRIVATE_KEY }} | ||
|
||
#Sync staging branch to the master branch to keep it updated | ||
- name: Set up Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
- name: Opening pull request | ||
id: pull | ||
uses: tretuna/sync-branches@ea58ab6e406fd3ad016a064b31270bbb41127f41 | ||
with: | ||
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} | ||
FROM_BRANCH: "staging" | ||
TO_BRANCH: "master" | ||
REVIEWERS: '["ledgerleapllc"]' | ||
CONTENT_COMPARISON: true | ||
PULL_REQUEST_BODY: "This PR is created by the PR Bot to sync the staging branch to the master branch. Please check the content changes also on the staging site if you want. You can feel free to ignore this or approve + merge it. If you merge, the prod deployment will start automatically. If you ignore it, it will get renewed the next time a new feature gets merged to the staging branch." | ||
PULL_REQUEST_TITLE: "Sync staging to master" | ||
|
||
#Display the pull request URL: | ||
- name: Display the pull request URL | ||
run: | | ||
echo "The pull request URL is: ${{ steps.pull.outputs.PULL_REQUEST_URL }}" |
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
Oops, something went wrong.