Skip to content

Commit

Permalink
fix(release): add release_id to data sent to JIRA release (#1450) (#1452
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tuntoja authored Jun 19, 2024
1 parent 30d5252 commit c63c536
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 @@ -186,6 +186,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 @@ -195,7 +196,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 c63c536

Please sign in to comment.