Set friendly release branch name to use with crowdin

pull/10005/head
Oliver Günther 3 years ago
parent f257f2d9ce
commit cef195bdc2
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 8
      .github/workflows/crowdin.yml

@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
latest_release_branch: ${{ steps.find_latest_release.outputs.branch }} latest_release_branch: ${{ steps.find_latest_release.outputs.branch }}
friendly_release_name: ${{ steps.find_latest_release.outputs.friendly_release_name }}
steps: steps:
- id: find_latest_release - id: find_latest_release
env: env:
@ -23,7 +24,12 @@ jobs:
echo "Invalid release branch found: $BRANCH" echo "Invalid release branch found: $BRANCH"
exit 1 exit 1
fi fi
# replace invalid chars foor crowdin
FRIENDLY_NAME=${BRANCH//[\/\.]/_}
echo "::set-output name=branch::${BRANCH}" echo "::set-output name=branch::${BRANCH}"
echo "::set-output name=friendly_release_name::${FRIENDLY_NAME}"
crowdin: crowdin:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -47,7 +53,7 @@ jobs:
# Download updated translations # Download updated translations
download_translations: true download_translations: true
# Which version branch to push to # Which version branch to push to
crowdin_branch_name: ${{ matrix.BRANCH }} crowdin_branch_name: ${{ needs.setup.outputs.friendly_release_name }}
# Dont create a PR for the updated translations # Dont create a PR for the updated translations
push_translations: false push_translations: false
env: env:

Loading…
Cancel
Save