Skip to content

Commit

Permalink
1.0.6 versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mraineri committed Oct 19, 2020
1 parent 2729033 commit dba2837
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [1.0.6] - 2020-10-19
- Made enhancements to be able to create a mockup of a server with a malformed `/redfish` resource

## [1.0.5] - 2019-08-09
- Added check to avoid parsing the resources that are referenced by Location properties

Expand Down
4 changes: 2 additions & 2 deletions redfishMockupCreate.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from urllib.parse import urljoin, urlparse, urlunparse
import xml.etree.ElementTree as ET

tool_version = "1.0.5"
tool_date = "08/08/2019"
tool_version = "1.0.6"
tool_date = "10/19/2020"

# rootservice navigation properties
rootLinks = ["Systems", "Chassis", "Managers", "SessionService", "AccountService", "Registries",
Expand Down
38 changes: 38 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

# Collect change log info
CHANGES="## [$1] - $(date +'%Y-%m-%d')"$'\n'
echo "Enter changes:"
while : ; do
read CHANGE
if [ "$CHANGE" = "" ]; then
break
fi

CHANGES="$CHANGES- $CHANGE"$'\n'
done

# Rebase
git checkout master
git fetch && git rebase origin

# Update the version number in redfishMockupCreate.py
sed -i -E 's/tool_version = .+/tool_version = "'$1'"/' redfishMockupCreate.py
sed -i -E 's|tool_date = .+|tool_date = "'$(date +'%m/%d/%Y')'"|' redfishMockupCreate.py

# Update the change log file
ex CHANGELOG.md <<eof
3 insert
$CHANGES
.
xit
eof

# Commit and push changes
git add CHANGELOG.md redfishMockupCreate.py
git commit -m "$1 versioning"
git push origin master

# Make new release in GitHub
CHANGES="Changes since last release:"$'\n\n'"$CHANGES"
gh release create $1 -n "$CHANGES"

0 comments on commit dba2837

Please sign in to comment.