File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- set -e
3+ set -ex
44mike=" pipenv run mike"
55CURRENT=$( git branch --show-current)
6-
6+ printenv
77# using dummy values for user.name and user.email as they are not required for git operations but a requirement for mike to have gh-pages branch
88git config --local user.name " Wire Docs"
99git config --local user.email " wire-docs-author@wire.com"
@@ -16,7 +16,7 @@ validate_output() {
1616 local output=" $1 "
1717 # to get building logs
1818 echo " $output "
19- # ignoring changelog.md as it is talking about past changes
19+ # Rule: ignoring changelog.md as it is talking about past changes
2020 remaining_warnings=$( echo " $output " | grep -i " WARNING" | grep -v " Doc file 'changelog/changelog.md' contains a link" | awk ' {$1=$1};1' )
2121
2222 if [ -n " $remaining_warnings " ]; then
@@ -65,9 +65,10 @@ while read -r tag commit; do
6565 existing_tags[$tag ]=$commit
6666done < <( $mike list | awk -F ' [][]' ' {print $1, $2}' )
6767
68+ git show-ref
69+
6870commit=$( git show-ref " refs/tags/${CURRENT_TAG} " | awk ' {print $1}' )
6971git checkout ${CURRENT_TAG}
70-
7172# pull the submodule
7273git submodule update --init --depth 1 wire-server
7374
You can’t perform that action at this time.
0 commit comments