Skip to content

Commit 6cf4da3

Browse files
chore: Rename default branch to main (#492)
1 parent edbd92d commit 6cf4da3

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/scripts/publish_preflight_check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ echo_info "Generating changelog"
145145
echo_info "--------------------------------------------"
146146
echo_info ""
147147

148-
echo_info "---< git fetch origin master --prune --unshallow >---"
149-
git fetch origin master --prune --unshallow
148+
echo_info "---< git fetch origin main --prune --unshallow >---"
149+
git fetch origin main --prune --unshallow
150150
echo ""
151151

152152
echo_info "Generating changelog from history..."

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878

7979
- name: Send email on failure
8080
if: failure()
81-
uses: firebase/firebase-admin-node/.github/actions/send-email@master
81+
uses: firebase/firebase-admin-node/.github/actions/send-email@main
8282
with:
8383
api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }}
8484
domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}
@@ -93,7 +93,7 @@ jobs:
9393

9494
- name: Send email on cancelled
9595
if: cancelled()
96-
uses: firebase/firebase-admin-node/.github/actions/send-email@master
96+
uses: firebase/firebase-admin-node/.github/actions/send-email@main
9797
with:
9898
api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }}
9999
domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ jobs:
9292

9393
# Check whether the release should be published. We publish only when the trigger PR is
9494
# 1. merged
95-
# 2. to the master branch
95+
# 2. to the main branch
9696
# 3. with the label 'release:publish', and
9797
# 4. the title prefix '[chore] Release '.
9898
if: github.event.pull_request.merged &&
99-
github.ref == 'refs/heads/master' &&
99+
github.ref == 'refs/heads/main' &&
100100
contains(github.event.pull_request.labels.*.name, 'release:publish') &&
101101
startsWith(github.event.pull_request.title, '[chore] Release ')
102102

@@ -145,7 +145,7 @@ jobs:
145145
- name: Post to Twitter
146146
if: success() &&
147147
contains(github.event.pull_request.labels.*.name, 'release:tweet')
148-
uses: firebase/firebase-admin-node/.github/actions/send-tweet@master
148+
uses: firebase/firebase-admin-node/.github/actions/send-tweet@main
149149
with:
150150
status: >
151151
${{ steps.preflight.outputs.version }} of @Firebase Admin .NET SDK is available.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Great, we love hearing how we can improve our products! Share you idea through o
4848

4949
Sweet, we'd love to accept your contribution! In fact this project is mainly
5050
driven by contributions from our community.
51-
[Open a new pull request](https://github.com/firebase/firebase-admin-dotnet/pull/new/master) and fill
51+
[Open a new pull request](https://github.com/firebase/firebase-admin-dotnet/pull/new) and fill
5252
out the provided template.
5353

5454
**If you want to implement a new feature, please open an issue with a proposal first so that we can

prepare_release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ fi
106106
# VALIDATE REPO #
107107
###################
108108

109-
# Ensure the checked out branch is master
109+
# Ensure the checked out branch is main
110110
CHECKED_OUT_BRANCH="$(git branch | grep "*" | awk -F ' ' '{print $2}')"
111-
if [[ $CHECKED_OUT_BRANCH != "master" ]]; then
112-
read -p "[WARN] You are on the '${CHECKED_OUT_BRANCH}' branch, not 'master'. Continue? (y/N) " CONTINUE
111+
if [[ $CHECKED_OUT_BRANCH != "main" ]]; then
112+
read -p "[WARN] You are on the '${CHECKED_OUT_BRANCH}' branch, not 'main'. Continue? (y/N) " CONTINUE
113113
case $CONTINUE in
114114
y|Y) ;;
115115
*) echo "[INFO] You chose not to continue." ;

0 commit comments

Comments
 (0)