This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SRM-526] Added new ci config to update reference branch. (#93)
* [SRM-526] Added new ci config to update reference branch. * Updates tide media for merge to reference settings. * Updated script. * Updated ci config. Co-authored-by: Md Nadim Hossain <getovic@gmail.com>
- Loading branch information
1 parent
d9114ce
commit aff860d
Showing
2 changed files
with
78 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
## | ||
# Merge develop to reference branch in CI. | ||
# | ||
|
||
echo "==> Checking out reference branch" | ||
git checkout reference | ||
echo "==> Merging develop to reference branch" | ||
git merge develop | ||
git checkout develop -- composer.json | ||
git add . | ||
echo "==> Replacing composer require entries starting with dpc-sdp with value dev-reference" | ||
cat composer.json | gojq '.require |= with_entries( | ||
if (.key | test("dpc-sdp/tide")) | ||
then .value = "dev-reference" end)' > composer.json.backup | ||
mv -f composer.json.backup composer.json | ||
echo "==> Add all changes" | ||
git add . | ||
git commit -m "Merge changes from develop." | ||
echo "==> Push the changes to remote reference branch" | ||
git push origin --force reference |