Skip to content

Commit

Permalink
fix(release): use pcre to get jira_release_id (#1471) (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuntoja authored Jun 27, 2024
1 parent aa06738 commit 50ed20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,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)"
JIRA_RELEASE_ID="$(git log |grep -E "Centreon\ next.*\#[0-9]{5,}\#\)" |grep -o -P "(?<=#)[0-9]{5,}(?=#)" |head -n 1)"
# Create JIRA version for each released component
echo "Creating JIRA releases."
Expand Down

0 comments on commit 50ed20f

Please sign in to comment.