-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
49 additions
and
20 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 @@ | ||
Breaking Changes,New,Fixed,Improved,Changed,Removed,Deprecated |
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,45 @@ | ||
name: Generate release notes | ||
|
||
# Start this workflow when a release branch is created | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
get_allowed_labels: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
allowed_labels: ${{ steps.get_allowed_labels.outputs.ALLOWED_LABELS }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get the list of allowed pull request labels | ||
id: get_allowed_labels | ||
run: | | ||
RED='\033[0;31m' | ||
FILE_NAME=.release_notes_allowed_labels_list | ||
GITHUB_DIR=.github | ||
FILE_PATH=$PROJECT_ROOT/$GITHUB_DIR/$FILE_NAME | ||
if [[ ! -f "$FILE_PATH" ]]; then | ||
echo -e "${RED}$FILE_NAME file doesn't exits in $GITHUB_DIR/" | ||
exit 1 | ||
fi | ||
ALLOWED_LABELS=$(cat $FILE_PATH) | ||
echo "allowed_labels=$ALLOWED_LABELS" >> $GITHUB_OUTPUT | ||
echo $ALLOWED_LABELS | ||
env: | ||
PROJECT_ROOT: ${{ github.workspace }} | ||
|
||
generate_release_notes: | ||
runs-on: ubuntu-latest | ||
needs: get_allowed_labels | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Generate release notes | ||
env: | ||
ALLOWED_LABELS: ${{ needs.get_allowed_labels.outputs.allowed_labels }} | ||
run: | | ||
echo "Hello" |
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