Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use friendly crowdin branch dev + release

Oliver Günther45bd36959b2e
diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml
index 58169e06431..afb2ce3f829 100644
--- a/.github/workflows/crowdin.yml
+++ b/.github/workflows/crowdin.yml
@@ -9,7 +9,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
latest_release_branch: ${{ steps.find_latest_release.outputs.branch }}
- friendly_release_name: ${{ steps.find_latest_release.outputs.friendly_release_name }}
steps:
- id: find_latest_release
env:
@@ -25,11 +24,8 @@ jobs:
exit 1
fi
- # replace invalid chars foor crowdin
- FRIENDLY_NAME=${BRANCH//[\/\.]/_}
-
echo "::set-output name=branch::${BRANCH}"
- echo "::set-output name=friendly_release_name::${FRIENDLY_NAME}"
+ echo "::set-output name=crowdin_release_branch::release"
crowdin:
runs-on: ubuntu-latest
@@ -45,6 +41,14 @@ jobs:
with:
ref: ${{ matrix.branch }}
fetch-depth: 1
+ - name: "Set crowdin branch name"
+ run: |
+ if [ "$BRANCH" = "dev" ]; then
+ echo "::set-output name=crowdin_branch::dev"
+ else
+ echo "::set-output name=crowdin_branch::release"
+ fi
+
- name: "Updating translations"
uses: crowdin/[email protected]
with:
@@ -53,7 +57,7 @@ jobs:
# Download updated translations
download_translations: true
# Which version branch to push to
- crowdin_branch_name: ${{ needs.setup.outputs.friendly_release_name }}
+ crowdin_branch_name: ${{ steps.vars.outputs.crowdin_branch }}
# Dont create a PR for the updated translations
push_translations: false
env: