Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions actions/st2_chg_ver_for_st2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,21 @@ git clone -b ${BRANCH} --single-branch ${GIT_REPO} ${LOCAL_REPO}
cd ${LOCAL_REPO}
echo "Currently at directory `pwd`..."


# SET ST2 VERSION INFO
INIT_FILES=(
COMMON_INIT_FILES=(
"st2common/st2common/__init__.py"
"st2client/st2client/__init__.py"
)

for INIT_FILE in "${INIT_FILES[@]}"
# Add all the runners
RUNNER_INIT_FILES=($(find contrib/runners -mindepth 3 -maxdepth 3 -name __init__.py -not -path "*tests*" -not -path "*query*" -not -path "*callback*" -not -path "*functions*"))

ALL_INIT_FILES=("${COMMON_INIT_FILES[@]}" "${RUNNER_INIT_FILES[@]}")

for INIT_FILE in "${ALL_INIT_FILES[@]}"
do
echo "Setting version in: ${INIT_FILE}"

if [[ ! -e "${INIT_FILE}" ]]; then
>&2 echo "ERROR: Version file ${INIT_FILE} does not exist."
exit 1
Expand Down
9 changes: 7 additions & 2 deletions actions/st2_prep_release_for_st2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,17 @@ fi
echo "Creating new branch ${BRANCH}..."
git checkout -b ${BRANCH} origin/master

files=(
COMMON_INIT_FILES=(
"st2common/st2common/__init__.py"
"st2client/st2client/__init__.py"
)

for f in "${files[@]}"
# Add all the runners
RUNNER_INIT_FILES=($(find contrib/runners -maxdepth 3 -name __init__.py -not -path "*tests*" -not -path "*query*" -not -path "*callback*" -not -path "*functions*"))

ALL_INIT_FILES=("${COMMON_INIT_FILES[@]}" "${RUNNER_INIT_FILES[@]}")

for f in "${init_files[@]}"
do
if [[ ! -e "$f" ]]; then
>&2 echo "ERROR: Version file ${f} does not exist."
Expand Down