Skip to content

Commit

Permalink
Feature/jira release workflow (#780)
Browse files Browse the repository at this point in the history
* Workflow to automate creating JIRA releases

* Workflow to automate creating JIRA releases
  • Loading branch information
paweljozwicki authored Sep 27, 2023
1 parent d0776bc commit c504022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-jira.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
echo "Released version: ${RELEASED_VERSION}"
PREVIOUS_VERSION=$(git describe --abbrev=0 ${RELEASED_VERSION}^)
echo "Previous version: ${RELEASED_VERSION}"
echo "Previous version: ${PREVIOUS_VERSION}"
COMMITS=$(git log ${RELEASED_VERSION}..${RELEASED_VERSION} --pretty=format:"%s" | grep ${PROJECT_NAME})
COMMITS=$(git log ${PREVIOUS_VERSION}..${RELEASED_VERSION} --pretty=format:"%s" | grep ${PROJECT_NAME})
TICKETS=$(echo "${COMMITS}" | grep -o ${PROJECT_NAME}'\-[0-9]\+' | sort -u | paste -sd "," -)
echo "Tickets found in commit messages: ${TICKETS}"
Expand Down

0 comments on commit c504022

Please sign in to comment.