Skip to content

Commit

Permalink
Merge branch 'master' into MON-37061-sync-release-collect
Browse files Browse the repository at this point in the history
  • Loading branch information
tuntoja committed Apr 9, 2024
2 parents 2fcfacd + fca9a28 commit 00e3bda
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ runs:
git config --global user.email "release@centreon.com"
git config --global user.name "Centreon"
# Rebuild NEW_STABLE_TAGS as an array
for i in ${NEW_RELEASE_TAGS[@]}; do
NEW_RELEASE_TAGS+=("$i")
done
# Create release tags on git for each release components
# Abort if no tags or existing tag
echo "Creating release tags."
Expand Down Expand Up @@ -106,6 +111,11 @@ runs:
echo "GH CLI is already installed."
fi
# Rebuild NEW_STABLE_TAGS as an array
for i in ${NEW_STABLE_TAGS[@]}; do
NEW_RELEASE_TAGS+=("$i")
done
# Create GITHUB release for each release components
# Abort if no tags
echo "Creating GITHUB releases."
Expand All @@ -116,6 +126,7 @@ runs:
else
echo "::error::Release tag $TAG was empty, exiting."
exit 1
fi
done
shell: bash
env:
Expand All @@ -129,6 +140,10 @@ runs:
# Webhook url
JIRA_INCOMING_WEBHOOK="${{ inputs.jira_webhook_url }}"
# Call JIRA to provide new jira versions to create
# Webhook url
JIRA_INCOMING_WEBHOOK="${{ inputs.jira_webhook_url }}"
# Rebuild NEW_STABLE_TAGS as an array
for i in ${NEW_STABLE_TAGS[@]}; do
NEW_RELEASE_TAGS+=("$i")
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/get-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ jobs:
GITHUB_RELEASE_TYPE=$(echo $BRANCHNAME |cut -d '-' -f 1)
case "$BRANCHNAME" in
master | [2-9][0-9].[0-9][0-9].x)
master)
echo "release=1" >> $GITHUB_OUTPUT
echo "release_cloud=1" >> $GITHUB_OUTPUT
echo "release_type=$GITHUB_RELEASE_TYPE" >> $GITHUB_OUTPUT
;;
[2-9][0-9].[0-9][0-9].x)
echo "release=1" >> $GITHUB_OUTPUT
echo "release_cloud=$GITHUB_RELEASE_CLOUD" >> $GITHUB_OUTPUT
echo "release_type=$GITHUB_RELEASE_TYPE" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 00e3bda

Please sign in to comment.