Skip to content

Commit aff3d0a

Browse files
docs: updating docs automations to rename master to main (#138)
Co-authored-by: Brian Rinaldi <brian.rinaldi@gmail.com>
1 parent 4abe889 commit aff3d0a

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/docs-parity-updates.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
targetBranch:
99
required: false
1010
type: string
11-
default: 'master'
11+
default: 'main'
1212

1313
jobs:
1414
update-parity-coverage-docs:
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222
path: docs
23-
ref: ${{ github.event.inputs.targetBranch || 'master' }}
23+
ref: ${{ github.event.inputs.targetBranch || 'main' }}
2424

2525
- name: Set up system wide dependencies
2626
run: |
@@ -114,10 +114,10 @@ jobs:
114114
working-directory: docs
115115
run: |
116116
# Check if there are changed files and store the result in resources/diff-check.log
117-
# Check against the PR branch if it exists, otherwise against the master
117+
# Check against the PR branch if it exists, otherwise against the main
118118
# Store the result in resources/diff-check.log and store the diff count in the GitHub Action output "diff-count"
119119
mkdir -p resources
120-
(git diff --name-only origin/parity-coverage-auto-updates data/coverage/ 2>/dev/null || git diff --name-only origin/${{ github.event.inputs.targetBranch || 'master' }} src/data/coverage/ 2>/dev/null) | tee -a resources/diff-check.log
120+
(git diff --name-only origin/parity-coverage-auto-updates data/coverage/ 2>/dev/null || git diff --name-only origin/${{ github.event.inputs.targetBranch || 'main' }} src/data/coverage/ 2>/dev/null) | tee -a resources/diff-check.log
121121
echo "diff-count=$(cat resources/diff-check.log | wc -l)" >> $GITHUB_OUTPUT
122122
123123
- name: Read PR markdown template

.github/workflows/docs-replicator-updates.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
targetBranch:
99
required: false
1010
type: string
11-
default: 'master'
11+
default: 'main'
1212

1313
jobs:
1414
update-replicator-docs:
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222
path: docs
23-
ref: ${{ github.event.inputs.targetBranch || 'master' }}
23+
ref: ${{ github.event.inputs.targetBranch || 'main' }}
2424

2525
- name: Set up system wide dependencies
2626
run: |
@@ -45,10 +45,10 @@ jobs:
4545
working-directory: docs
4646
run: |
4747
# Check if there are changed files and store the result in resources/diff-check.log
48-
# Check against the PR branch if it exists, otherwise against the master
48+
# Check against the PR branch if it exists, otherwise against the main
4949
# Store the result in resources/diff-check.log and store the diff count in the GitHub Action output "diff-count"
5050
mkdir -p resources
51-
(git diff --name-only origin/replicator-coverage-updates src/data/replicator/coverage.json 2>/dev/null || git diff --name-only origin/${{ github.event.inputs.targetBranch || 'master' }} src/data/replicator/coverage.json 2>/dev/null) | tee resources/diff-check.log
51+
(git diff --name-only origin/replicator-coverage-updates src/data/replicator/coverage.json 2>/dev/null || git diff --name-only origin/${{ github.event.inputs.targetBranch || 'main' }} src/data/replicator/coverage.json 2>/dev/null) | tee resources/diff-check.log
5252
echo "diff-count=$(cat resources/diff-check.log | wc -l)" >> $GITHUB_OUTPUT
5353
cat resources/diff-check.log
5454

.github/workflows/update-persistence-coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
targetBranch:
88
required: false
99
type: string
10-
default: 'master'
10+
default: 'main'
1111

1212
jobs:
1313
update-persistence-docs:
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121
path: docs
22-
ref: ${{ github.event.inputs.targetBranch || 'master' }}
22+
ref: ${{ github.event.inputs.targetBranch || 'main' }}
2323

2424
- name: Set up Python 3.11
2525
id: setup-python
@@ -46,7 +46,7 @@ jobs:
4646
# Check against the PR branch if it exists, otherwise against the main
4747
# Store the result in resources/diff-check.log and store the diff count in the GitHub Action output "diff-count"
4848
mkdir -p resources
49-
(git diff --name-only origin/persistence-auto-updates src/data/persistence/ 2>/dev/null || git diff --name-only origin/${{ github.event.inputs.targetBranch || 'master' }} src/data/persistence/ 2>/dev/null) | tee -a resources/diff-check.log
49+
(git diff --name-only origin/persistence-auto-updates src/data/persistence/ 2>/dev/null || git diff --name-only origin/${{ github.event.inputs.targetBranch || 'main' }} src/data/persistence/ 2>/dev/null) | tee -a resources/diff-check.log
5050
echo "diff-count=$(cat resources/diff-check.log | wc -l)" >> $GITHUB_OUTPUT
5151
cat resources/diff-check.log
5252

0 commit comments

Comments
 (0)