Skip to content

Commit

Permalink
Release script
Browse files Browse the repository at this point in the history
  • Loading branch information
mraineri committed Aug 23, 2021
1 parent c7962f6 commit a1382a4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/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 rf_protocol_validator.py
sed -i -E 's/Version:\t.+/Version:\t'$1'/' rpm/libredfish.spec

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

# Commit and push changes
#git add CHANGELOG.md rf_protocol_validator.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 a1382a4

Please sign in to comment.