Skip to content

Commit

Permalink
Ignore changelog tags not on dev or main (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass authored Jan 13, 2022
1 parent 2870513 commit 04b4c41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/shared-create-dev-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ jobs:
temp_array=()
for value in ${ALL_TAGS[@]}
do
if ! [[ $value == $TAG_PREFIX$TAG_BASE$TAG_POSTFIX* || $value =~ ${{ inputs.main-tag-regex }} ]]; then
# Exclude any tags not matching the type of release or hotfix tags not on dev or main
if ! [[ ( $value == $TAG_PREFIX$TAG_BASE$TAG_POSTFIX* || $value =~ ${{ inputs.main-tag-regex }} ) && $(git branch -a --contains $value | grep -E 'remotes/origin/dev|remotes/origin/main') ]]; then
temp_array+=($value)
fi
done
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/shared-create-main-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ jobs:
temp_array=()
for value in ${ALL_TAGS[@]}
do
if ! [[ $value =~ ${{ inputs.main-tag-regex }} ]]; then
# Exclude any tags not matching the type of release or hotfix tags not on dev or main
if ! [[ ( $value =~ ${{ inputs.main-tag-regex }} ) && $(git branch -a --contains $value | grep -E 'remotes/origin/dev|remotes/origin/main') ]]; then
temp_array+=($value)
fi
done
Expand Down

0 comments on commit 04b4c41

Please sign in to comment.