-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed further automations - Added a new script to add the correct changelog to the beta versions - Added an option to keep old beta versions if needed - Added a default version to the beta pipeline * further fixes to the beta deployment
- Loading branch information
Showing
4 changed files
with
83 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/bash | ||
|
||
CHANGELOG_FILE="CHANGELOG.md" | ||
OUTPUT_FILE="release_notes.md" | ||
OUTPUT_TO_FILE="FALSE" | ||
REPO="" | ||
|
||
while [[ $# -gt 0 ]]; do | ||
case $1 in | ||
-m) | ||
MODE=$2 | ||
shift | ||
shift | ||
;; | ||
--version) | ||
VERSION=$2 | ||
shift | ||
shift | ||
;; | ||
-v) | ||
VERSION=$2 | ||
shift | ||
shift | ||
;; | ||
--CHANGELOG_FILE) | ||
CHANGELOG_FILE=$2 | ||
shift | ||
shift | ||
;; | ||
--repo) | ||
REPO=$2 | ||
shift | ||
shift | ||
;; | ||
--file) | ||
OUTPUT_FILE shift | ||
shift | ||
;; | ||
--output-to-file) | ||
OUTPUT_TO_FILE="TRUE" | ||
shift | ||
;; | ||
*) | ||
echo "Invalid argument: $1" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
|
||
function generate_release_notes() { | ||
# Get the content for the highest version | ||
content=$(./.github/workflow_scripts/generate-changelog.sh --repo "$REPO" --mode RELEASE) | ||
|
||
# Write the content to the output file | ||
if [ "$OUTPUT_TO_FILE" == "TRUE" ]; then | ||
echo -e "# Release Notes for v$VERSION\n\n$content" >$OUTPUT_FILE | ||
else | ||
echo -e "# Release Notes for v$VERSION\n\n$content" | ||
fi | ||
} | ||
|
||
if [ -z "$REPO" ]; then | ||
echo "Error: --repo is not set" >&2 | ||
exit 1 | ||
fi | ||
|
||
generate_release_notes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters