Skip to content

Commit

Permalink
fix(release): add release_id to data sent to JIRA release (#1450)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuntoja authored Jun 19, 2024
1 parent 40b54ce commit 835b04f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ runs:
JIRA_RELEASE_NAME=""
JIRA_PROJECT_ID="${{ inputs.jira_project_id }}"
JIRA_RELEASE_RELEASED="false"
JIRA_RELEASE_ID="$(git log |grep -E "^\s+Centreon.*#[0-9]{5,}#)" |grep -Eo "([0-9]{5,})" |head -n 1)"
# Create JIRA version for each released component
echo "Creating JIRA releases."
Expand All @@ -194,7 +195,7 @@ runs:
# Build JSON with release information for JIRA API
JIRA_RELEASE_DATA=$(jq -nc \
--arg archived "$JIRA_RELEASE_ARCHIVED" \
--arg description "$TAG" \
--arg description "$JIRA_RELEASE_ID $TAG" \
--arg releaseDate "$JIRA_RELEASE_DATE" \
--arg name "$TAG" \
--arg projectId "$JIRA_PROJECT_ID" \
Expand Down

0 comments on commit 835b04f

Please sign in to comment.