Skip to content

Commit

Permalink
Merge pull request #18 from dmurphy18/fix_cut_release_9
Browse files Browse the repository at this point in the history
Further corrections to cutting a release
  • Loading branch information
dmurphy18 authored Dec 4, 2024
2 parents 161c5e2 + 4f1b2bf commit 81acc18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ jobs:
- name: Get linux/svtminion.sh on main branch sha256sum
run: |
echo "SH=$(sha256sum linux/svtminion.sh | awk '{ print $1 }')" >> "$GITHUB_ENV"
echo "VMTS_VERSION=$(sh linux/svtminion.sh --version | awk '{ print $4 }')" >> "$GITHUB_ENV"
echo "VMTS_VERSION=$(bash linux/svtminion.sh --version | awk '{ print $1 }')" >> "$GITHUB_ENV"
echo "DGM SH ,${SH}, and VMTS_VERSION ,${VMTS_VERSION},"
- uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/scripts/cut-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ def main():
)
svtminion_script_path.write_text(
re.sub(
r'SCRIPT_VERSION="(.*)"',
f'SCRIPT_VERSION="{options.release_tag.lstrip("v")}"',
r'readonly SCRIPT_VERSION="(.*)"',
f'readonly SCRIPT_VERSION="{options.release_tag.lstrip("v")}"',
svtminion_script_path.read_text(),
)
)
Expand All @@ -212,8 +212,8 @@ def main():
)
svtminion_script_path.write_text(
re.sub(
r'\$SCRIPT_VERSION= "(.*)"',
f'$SCRIPT_VERSION= "{options.release_tag.lstrip("v")}"',
r'\$SCRIPT_VERSION = "(.*)"',
f'$SCRIPT_VERSION = "{options.release_tag.lstrip("v")}"',
svtminion_script_path.read_text(),
)
)
Expand Down
2 changes: 1 addition & 1 deletion linux/svtminion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -o pipefail
# using bash for now
# run this script as root, as needed to run Salt

readonly SCRIPT_VERSION='SCRIPT_VERSION_REPLACE'
readonly SCRIPT_VERSION="SCRIPT_VERSION_REPLACE"

# definitions

Expand Down

0 comments on commit 81acc18

Please sign in to comment.