Skip to content

Commit

Permalink
Revert release title generation logic (#504)
Browse files Browse the repository at this point in the history
The commit updates the release title generation script for both PTU and LIVE environments. It now uses the latest commit message to extract the title, handling cases where a pipe character is present and appending a locale indicator when needed.

Signed-off-by: Lucas Greuloch (greluc) <[email protected]>
  • Loading branch information
greluc authored Mar 17, 2024
1 parent 42c0a83 commit 46b0b68
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/create_realease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,26 @@ jobs:
- name: Create Release Title For PTU
id: title_ptu # creates a title for the release that shows the version number used in the title of the last commit that changed the ptu/global.ini
if: steps.new_commits_ptu.outputs.NEW_COMMIT_COUNT_PTU > 0
run: echo "RELEASE_TITLE_PTU=$(cat 'en/ptu/build.ptu')" >> $GITHUB_OUTPUT
# run: echo "RELEASE_TITLE_PTU=$(cat 'en/ptu/build.ptu')" >> $GITHUB_OUTPUT
run: |
if [$(git log -1 --pretty=%s -- ptu/global.ini | grep "|") == ""]
then
echo "RELEASE_TITLE_PTU=${{ vars.RELEASE_TITLE_PTU }}" >> $GITHUB_OUTPUT
else
echo "RELEASE_TITLE_PTU=$(git log -1 --pretty=%s -- ptu/global.ini | cut -s -d'|' -f1 | rev | cut -c 2- | rev) [de]" >> $GITHUB_OUTPUT
fi
- name: Create Release Title For LIVE
id: title_live # creates a title for the release that shows the version number used in the title of the last commit that changed the live/global.ini
if: steps.new_commits_live.outputs.NEW_COMMIT_COUNT_LIVE > 0
run: echo "RELEASE_TITLE_LIVE=$(cat 'en/live/build.live')" >> $GITHUB_OUTPUT
# run: echo "RELEASE_TITLE_LIVE=$(cat 'en/live/build.live')" >> $GITHUB_OUTPUT
run: |
if [$(git log -1 --pretty=%s -- live/global.ini | grep "|") == ""]
then
echo "RELEASE_TITLE_LIVE=${{ vars.RELEASE_TITLE_LIVE }}" >> $GITHUB_OUTPUT
else
echo "RELEASE_TITLE_LIVE=$(git log -1 --pretty=%s -- live/global.ini | cut -s -d'|' -f1 | rev | cut -c 2- | rev) [de]" >> $GITHUB_OUTPUT
fi
- name: Get Last Tag On PTU
id: tag_PTU
Expand Down

0 comments on commit 46b0b68

Please sign in to comment.