forked from SuperFlyTV/sofie-demo-blueprints
-
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.
Merge pull request #182 from tv2/mergeStagingToMaster
Merge staging to master
- Loading branch information
Showing
237 changed files
with
3,093 additions
and
1,981 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,23 +1,71 @@ | ||
name: automerge | ||
name: Scheduled Automerge Master -> Staging -> Develop | ||
|
||
on: | ||
schedule: | ||
- cron: '15 0 * * *' # every night | ||
- cron: '0 0 * * 1-5' # At 00:00, Monday through Friday | ||
workflow_dispatch: # on button click | ||
|
||
jobs: | ||
merge-staging-to-dev: | ||
merge-master-to-staging: | ||
name: Merge Master to Staging | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set Git config | ||
run: | | ||
git config --local user.email "${GITHUB_ACTOR}" | ||
git config --local user.name "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- name: Merge staging to develop | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions # Blueprint-Automation" | ||
- name: Merge 'master' to 'staging' | ||
id: merge | ||
continue-on-error: true | ||
run: | | ||
git fetch --unshallow | ||
git checkout staging | ||
git pull | ||
git merge --no-ff origin/master -m "Automerge 'master' to 'staging'" | ||
git push | ||
- name: Abort merge | ||
if: steps.merge.outcome == 'failure' | ||
run: git merge --abort | ||
- name: Create Pull Request on merge failure | ||
if: steps.merge.outcome == 'failure' | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: master | ||
destination_branch: staging | ||
pr_title: "Automerge Failed: master -> staging" | ||
pr_body: Failed to merge 'master' into 'staging'. | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
merge-staging-to-develop: | ||
name: Merge Staging to Develop | ||
runs-on: ubuntu-latest | ||
needs: merge-master-to-staging | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set Git config | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions # Blueprint-Automation" | ||
- name: Merge 'staging' to 'develop' | ||
id: merge | ||
continue-on-error: true | ||
run: | | ||
git fetch --unshallow | ||
git checkout develop | ||
git pull | ||
git merge --no-ff origin/staging -m "Auto-merge staging to develop" | ||
git merge --no-ff origin/staging -m "Automerge 'staging' to 'develop'." | ||
git push | ||
- name: Abort merge | ||
if: steps.merge.outcome == 'failure' | ||
run: git merge --abort | ||
- name: Create Pull Request on merge failure | ||
if: steps.merge.outcome == 'failure' | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: staging | ||
destination_branch: develop | ||
pr_title: "Automerge Failed: staging -> develop" | ||
pr_body: Failed to merge 'staging' into 'develop'. | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -37,6 +37,7 @@ module.exports = { | |
], | ||
moduleDirectories: [ | ||
"node_modules", | ||
"src" | ||
"src", | ||
"src/types" | ||
] | ||
} |
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,6 +1,6 @@ | ||
{ | ||
"name": "tv2-sofie-blueprints-inews", | ||
"version": "1.7.5", | ||
"version": "1.7.8", | ||
"repository": "https://github.com/olzzon/tv2-sofie-blueprints-inews", | ||
"license": "MIT", | ||
"private": true, | ||
|
@@ -60,7 +60,7 @@ | |
"webpack-cli": "^3.1.2" | ||
}, | ||
"dependencies": { | ||
"@tv2media/blueprints-integration": "1.42.7", | ||
"@sofie-automation/blueprints-integration": "npm:@tv2media/[email protected]", | ||
"underscore": "^1.12.1" | ||
}, | ||
"resolutions": { | ||
|
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
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.