Skip to content

Commit 2dba6e8

Browse files
committed
Updated default branch name
1 parent 5e6610d commit 2dba6e8

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request: {}
44
push:
55
branches:
6-
- master
6+
- main
77
schedule:
88
- cron: '0 0 * * *'
99

@@ -126,7 +126,7 @@ jobs:
126126
name: Deploy to ember-learn/guides-source (super-rentals-tutorial branch)
127127
needs: build
128128
runs-on: ubuntu-latest
129-
if: github.ref == 'refs/heads/master'
129+
if: github.ref == 'refs/heads/main'
130130
steps:
131131
- name: Set up Git
132132
run: |
@@ -156,7 +156,7 @@ jobs:
156156
IFS=$'\n\t'
157157
158158
if ! git clone git@github.com:ember-learn/guides-source --depth 1 -b super-rentals-tutorial; then
159-
git clone git@github.com:ember-learn/guides-source --depth 1 -b master
159+
git clone git@github.com:ember-learn/guides-source --depth 1 -b main
160160
cd guides-source
161161
git checkout -b super-rentals-tutorial
162162
fi
@@ -293,7 +293,7 @@ jobs:
293293
name: Deploy to ember-learn/super-rentals (super-rentals-tutorial-output branch)
294294
needs: build
295295
runs-on: ubuntu-latest
296-
if: github.ref == 'refs/heads/master'
296+
if: github.ref == 'refs/heads/main'
297297
steps:
298298
- name: Set up Git
299299
run: |
@@ -336,23 +336,23 @@ jobs:
336336
- name: Push
337337
run: |
338338
git remote add super-rentals git@github.com:ember-learn/super-rentals.git
339-
git push -f super-rentals master:super-rentals-tutorial-output
339+
git push -f super-rentals main:super-rentals-tutorial-output
340340
341341
deploy-code-flattened:
342-
# This job deploys the built app to the master branch of the
342+
# This job deploys the built app to the main branch of the
343343
# ember-learn/super-rentals repository. This branch does not preserve
344344
# the commit history of the tutorial flow. Instead, it squashes the changes
345-
# into a single commit on the master branch. This preserves
345+
# into a single commit on the main branch. This preserves
346346
# a linear history of changes to the built app over time, either due to
347347
# changes to the generator blueprints, or changes to the tutorial content
348348
# itself (e.g. refactoring to use new ember features). A lot of times, the
349349
# built app's source code remains stable and so there may be no changes to
350350
# push here.
351351
#
352-
name: Deploy to ember-learn/super-rentals (master branch)
352+
name: Deploy to ember-learn/super-rentals (main branch)
353353
needs: build
354354
runs-on: ubuntu-latest
355-
if: github.ref == 'refs/heads/master'
355+
if: github.ref == 'refs/heads/main'
356356
steps:
357357
- name: Set up Git
358358
run: |
@@ -397,7 +397,7 @@ jobs:
397397
git commit --allow-empty -m "$COMMIT_MESSAGE"
398398
git remote add output ../output
399399
git fetch output
400-
git merge --squash --no-commit --allow-unrelated-histories output/master
400+
git merge --squash --no-commit --allow-unrelated-histories output/main
401401
git reset HEAD~ -- README.md app.json
402402
git commit --allow-empty --amend --no-edit
403403
env:
@@ -408,7 +408,7 @@ jobs:
408408
set -euo pipefail
409409
IFS=$'\n\t'
410410
411-
if git diff --exit-code origin/master; then
411+
if git diff --exit-code origin/main; then
412412
echo "Nothing to push"
413413
else
414414
git push

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ Correctly spelled words flagged as misspelt can be added to the local dictionary
171171
172172
Finally, the tutorial will be linted using the `guides` markdown linter when the PR is created. Since the linter will use the `guides` dictionary the words in `.local.dic` must also be in the guides `.local.dic` file for linting to pass.
173173
174-
When new words are added to the local dictionary, a separate PR must be opened on the guides to add them to the guides dictionary. If there are words that you think belong in the master Ember [dictionary](https://github.com/maxwondercorn/ember-dictionary) versus being in the local dictionary, open a PR.
174+
When new words are added to the local dictionary, a separate PR must be opened on the guides to add them to the guides dictionary. If there are words that you think belong to the [Ember dictionary](https://github.com/maxwondercorn/ember-dictionary), please open a PR in that repo.
175175
176176
#### Pull Request Merging
177177
178-
After the pull request is merged into the master branch, the generated markdown and code output will be pushed to a branch on the markdown/code output will be pushed to a branch on the [guides](https://github.com/ember-learn/guides-source) and [super rentals repos](https://github.com/ember-learn/guides-source/tree/super-rentals-tutorial) so that they can be further reviewed by their maintainers before integrating into the tutorial code/app and markdown.
178+
After the pull request is merged to the `main` branch, the generated markdown and code output will be pushed to a branch on the markdown/code output will be pushed to a branch on the [guides](https://github.com/ember-learn/guides-source) and [super rentals repos](https://github.com/ember-learn/guides-source/tree/super-rentals-tutorial) so that they can be further reviewed by their maintainers before integrating into the tutorial code/app and markdown.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Runnable super-rentals tutorial
22

3-
[![Build Status](https://github.com/ember-learn/super-rentals-tutorial/workflows/Build/badge.svg?branch=master)](https://github.com/ember-learn/super-rentals-tutorial/actions?query=workflow%3ABuild+branch%3Amaster)
3+
[![Build Status](https://github.com/ember-learn/super-rentals-tutorial/actions/workflows/build.yml/badge.svg)](https://github.com/ember-learn/super-rentals-tutorial/actions/workflows/build.yml)
44

55
## What?
66

@@ -468,7 +468,7 @@ Example:
468468

469469
```run:ignore:command cwd=super-rentals
470470
# FIXME: don't run this for now, since Heroku is down atm
471-
git push heroku master
471+
git push heroku main
472472
```
473473

474474
### `run:pause`

0 commit comments

Comments
 (0)