Skip to content

Commit

Permalink
[TASK] Try to fix github workflow for ter release
Browse files Browse the repository at this point in the history
  • Loading branch information
kanow committed Oct 28, 2024
1 parent 6ce6890 commit 3ab36b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ter-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: TYPO3 Extension TER Release
on:
push:
tags:
- '*'
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
publish:
name: Publish new version to TER
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
env:
TYPO3_EXTENSION_KEY: ${{ secrets.TYPO3_EXTENSION_KEY }}
TYPO3_EXTENSION_KEY: ${{ env.TYPO3_EXTENSION_KEY }}
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }}
steps:
- name: Checkout repository
Expand All @@ -28,7 +28,8 @@ jobs:
- name: Get comment
id: get-comment
run: |
readonly local comment=$(git tag -n10 -l ${{ env.version }} | sed "s/^[0-9.]*[ ]*//g;/^\s*$/d;1d")
cd ${GITHUB_WORKSPACE}
readonly local comment=$(git tag -n10 -l ${{ env.version }} | sed "s/^[0-9.]*[ ]*//g" | sed "/^$/d")
if [[ -z "${comment// }" ]]; then
echo "comment=Released version ${{ env.version }} of ${{ env.TYPO3_EXTENSION_KEY }}" >> $GITHUB_ENV
Expand Down

0 comments on commit 3ab36b1

Please sign in to comment.