Skip to content

Commit f1c34bd

Browse files
wps132230Pushen Wang
authored andcommitted
Use main as the default branch.
1 parent bb1fdce commit f1c34bd

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

CI/binary-release-pipeline/template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ Resources:
530530
- - Type: EVENT
531531
Pattern: PUSH
532532
- Type: HEAD_REF
533-
Pattern: ^refs/heads/master$
533+
Pattern: ^refs/heads/main$
534534
Artifacts:
535535
Type: S3
536536
Location: !Ref BinaryReleaseS3BucketName

CI/trebuchet-release-pipeline/buildspec_push_to_github.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ phases:
88
- python3 aws-sdk-cpp/CI/trebuchet-release-pipeline/UpdateStatus.py -s PushToGithub -i "$RELEASE_ID" -m "Step 4 of 4. Pushing Code to Public Github." -b $CODEBUILD_BUILD_SUCCEEDING
99
- cd aws-sdk-cpp
1010
# Verify the candidate commit, in case there is new merge without testing during release.
11-
- if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi;
11+
- if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi;
1212
- git fetch --all
13-
- if [ -n "$(git diff master origin/master)" ]; then exit 1; fi;
13+
- if [ -n "$(git diff main origin/main)" ]; then exit 1; fi;
1414
# Get highest tag number
1515
- export VERSION=$(git describe --abbrev=0 --tags)
1616
# Calculate new version
@@ -32,7 +32,7 @@ phases:
3232
- git config --global user.email "$GIT_COMMIT_AUTHOR_EMAIL"
3333
- git commit -m "$COMMIT_MSG"
3434
- git checkout release-candidate
35-
- git merge master
35+
- git merge main
3636
- git push origin release-candidate
3737
# Get current hash and see if it already has a tag
3838
- export GIT_COMMIT=$(git rev-parse HEAD)
@@ -52,11 +52,13 @@ phases:
5252
# - git reset --hard HEAD
5353
# - git checkout release-candidate
5454
# - git pull
55-
- git checkout master
55+
- git checkout main
5656
- git pull
5757
- git merge release-candidate
58-
- git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${GITHUB_PRIVATE_REPOSITORY}.git master
59-
- git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${GITHUB_PUBLIC_REPOSITORY}.git master
58+
- git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${GITHUB_PRIVATE_REPOSITORY}.git main
59+
- git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${GITHUB_PRIVATE_REPOSITORY}.git main:master
60+
- git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${GITHUB_PUBLIC_REPOSITORY}.git main
61+
- git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${GITHUB_PUBLIC_REPOSITORY}.git main:master
6062
- git push --tags https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${GITHUB_PUBLIC_REPOSITORY}.git
6163
post_build:
6264
commands:

CI/trebuchet-release-pipeline/template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# | 1. Bump the patch part of the version |
3535
# | 2. Commit the changes to release-candidate branch |
3636
# | 3. Tag the release candidate branch |
37-
# | 4. Merge release-candidate to master |
37+
# | 4. Merge release-candidate to main branch |
3838
# | 5. Push the changes to private repo |
3939
# | 6. Push the changes to public repo |
4040
# +-------------------------------------------------------+

0 commit comments

Comments
 (0)