Skip to content

Commit

Permalink
Update master references to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
oodamien committed Apr 27, 2021
1 parent 848ff3e commit 473b353
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/staging-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Staging Build and Deploy
on:
push:
branches:
- master
- main
workflow_dispatch:

env:
Expand Down
2 changes: 1 addition & 1 deletion content/documentation/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipper-version": "2.7.0-SNAPSHOT",
"dataflow-version": "2.8.0-SNAPSHOT",

"github-tag": "master",
"github-tag": "main",

"spring-maven-repo-type": "snapshot",

Expand Down
4 changes: 2 additions & 2 deletions content/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
},
"2.8.0.SNAPSHOT": {
"name": "2.8.0 SNAPSHOT",
"branch": "master"
"branch": "main"
},
"next": {
"name": "next",
"branch": "master"
"branch": "main"
}
}
6 changes: 3 additions & 3 deletions scripts/link-master.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const MASTER_DIR = path.join(__dirname, '../content/documentation')
const DATA_DIR = path.join(__dirname, '../data')

const linkMaster = async () => {
info('Linking master')
info('Linking main')
linkFile(MASTER_DIR, path.join(DATA_DIR, 'next'))
linkFile(MASTER_DIR, path.join(DATA_DIR, 'master'))
linkFile(MASTER_DIR, path.join(DATA_DIR, 'main'))
}

const linkFile = (src, dest) => {
Expand All @@ -18,4 +18,4 @@ const linkFile = (src, dest) => {
if (failed) throw new Error(`Couldn't link ${src} to ${dest}`)
}

main('link-master', linkMaster)
main('link-main', linkMaster)
2 changes: 1 addition & 1 deletion scripts/load-repos.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const loadRepos = async () => {
for (let versionId of Object.keys(versions)) {
info(versionId)
const version = versions[versionId]
if (version.branch === 'master') {
if (version.branch === 'main') {
info(`Link version ${versionId} (name: ${version.name})`)
linkFile(MASTER_DIR, path.join(DATA_DIR, versionId))
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/layout/Navigations.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Navigation extends React.Component {
})
let version = this.props.version ? this.props.version : currentVersion
if (version === 'next') {
version = 'master'
version = 'main'
}
return (
<>
Expand Down

0 comments on commit 473b353

Please sign in to comment.