@@ -171,7 +171,7 @@ function run_changelog() {
171171 exit 0
172172 fi
173173 # Ensure the number of lines added in the changelog is not 0
174- added_to_changelog=$( git diff origin/master --numstat -- CHANGELOG.md \
174+ added_to_changelog=$( git diff origin/main --numstat -- CHANGELOG.md \
175175 | awk ' {print $1}' )
176176 if [ " x$added_to_changelog " == " x" ] || [ " $added_to_changelog " -eq 0 ]; then
177177 echo " No changes to CHANGELOG.md" >&2
@@ -206,7 +206,7 @@ function run_style() {
206206function run_commit(){
207207 BRANCH=" $( echo $GITHUB_REF | cut -d' /' -f 3) "
208208 echo " On Branch: ${BRANCH} "
209- if [[ " $BRANCH " != " master " ]]; then
209+ if [[ " $BRANCH " != " main " ]]; then
210210 dffml service dev lint commits
211211 fi
212212}
@@ -245,13 +245,13 @@ function run_docs() {
245245 exit 1
246246 fi
247247
248- # Make master docs
249- master_docs =" $( mktemp -d) "
250- TEMP_DIRS+=(" ${master_docs } " )
248+ # Make main docs
249+ main_docs =" $( mktemp -d) "
250+ TEMP_DIRS+=(" ${main_docs } " )
251251 rm -rf pages
252252 dffml service dev docs || ./scripts/docs.sh
253253
254- mv pages " ${master_docs } /html"
254+ mv pages " ${main_docs } /html"
255255
256256 # Make last release docs
257257 release_docs=" $( mktemp -d) "
@@ -276,14 +276,14 @@ function run_docs() {
276276 " ${release_docs} /old-gh-pages-branch"
277277
278278 mv " ${release_docs} /old-gh-pages-branch/.git" " ${release_docs} /html/"
279- mv " ${master_docs } /html" " ${release_docs} /html/master "
279+ mv " ${main_docs } /html" " ${release_docs} /html/main "
280280
281281 # Make webui
282282 git clone https://github.com/intel/dffml -b webui " ${release_docs} /webui"
283283 cd " ${release_docs} /webui/service/webui/webui"
284284 yarn install
285285 yarn build
286- mv build/ " ${release_docs} /html/master /webui"
286+ mv build/ " ${release_docs} /html/main /webui"
287287
288288 cd " ${release_docs} /html"
289289
@@ -293,8 +293,8 @@ function run_docs() {
293293 git add -A
294294 git commit -sam " docs: $( date) "
295295
296- # Don't push docs unless we're running on master
297- if [ " x${GITHUB_ACTIONS} " == " xtrue" ] && [ " x${GITHUB_REF} " != " xrefs/heads/master " ]; then
296+ # Don't push docs unless we're running on main
297+ if [ " x${GITHUB_ACTIONS} " == " xtrue" ] && [ " x${GITHUB_REF} " != " xrefs/heads/main " ]; then
298298 return
299299 fi
300300
@@ -312,15 +312,15 @@ function run_docs() {
312312 cd -
313313
314314 git reset --hard HEAD
315- git checkout master
315+ git checkout main
316316}
317317
318318function run_lines() {
319319 " ${PYTHON} " ./scripts/check_literalincludes.py
320320}
321321
322322function run_container() {
323- docker build --build-arg DFFML_RELEASE=master -t intelotc/dffml .
323+ docker build --build-arg DFFML_RELEASE=main -t intelotc/dffml .
324324 docker run --rm intelotc/dffml version
325325 docker run --rm intelotc/dffml service dev entrypoints list dffml.model
326326}
0 commit comments