diff --git a/.github/workflows/docs-localization-download.yml b/.github/workflows/docs-localization-download.yml index e3fd962ec3..8134152e42 100644 --- a/.github/workflows/docs-localization-download.yml +++ b/.github/workflows/docs-localization-download.yml @@ -31,8 +31,8 @@ jobs: working-directory: ./docs - name: "Build locales" run: - sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l - hi -l ko -l pt_BR -l es -l zh_CN -l ru -l en + sphinx-intl update -p ./build/locales -l ja -l de -l ja -l fr -l it -l en -l + hi -l ko -l pt_BR -l es -l zh_CN -l ru working-directory: ./docs - name: "Crowdin" id: crowdin @@ -60,12 +60,10 @@ jobs: - name: "Convert Outputs" id: convert_outputs run: | - PR_REF=pull/${{ steps.crowdin.outputs.pull_request_number }}/head - PR_ID=${{ steps.crowdin.outputs.pull_request_number }} - BASE64_PR_REF=$(echo -n "$PR_REF" | base64) - BASE64_PR_ID=$(echo -n "$PR_ID" | base64) - echo "pr_ref=$BASE64_PR_REF" >> $GITHUB_OUTPUT - echo "pr_id=$BASE64_PR_ID" >> $GITHUB_OUTPUT + PR_REF="pull/${{ steps.crowdin.outputs.pull_request_number }}/head" + PR_ID="${{ steps.crowdin.outputs.pull_request_number }}" + echo "pr_ref=$(echo -n "$PR_REF" | base64)" >> $GITHUB_OUTPUT + echo "pr_id=$(echo -n "$PR_ID" | base64)" >> $GITHUB_OUTPUT pr: permissions: write-all @@ -77,10 +75,8 @@ jobs: - name: "Convert Outputs" id: convert_outputs run: | - BASE64_PR_REF=${{ needs.download.outputs.pr_ref }} - BASE64_PR_ID=${{ needs.download.outputs.pr_id }} - PR_REF=$(echo -n "$BASE64_PR_REF" | base64 --decode) - PR_ID=$(echo -n "$BASE64_PR_ID" | base64 --decode) + PR_REF=$(echo -n "${{ needs.download.outputs.pr_ref }}" | base64 --decode) + PR_ID=$(echo -n "${{ needs.download.outputs.pr_id }}" | base64 --decode) echo "pr_ref=$PR_REF" >> $GITHUB_OUTPUT echo "pr_id=$PR_ID" >> $GITHUB_OUTPUT - name: Invoke checks workflow @@ -121,8 +117,8 @@ jobs: - run: gh pr review --approve -b "auto-approval for localization sync :3" "$PR_ID" env: PR_ID: ${{ steps.convert_outputs.outputs.pr_id }} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh pr merge --auto -d --squash $PR_ID env: PR_ID: ${{ steps.convert_outputs.outputs.pr_id }} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/docs-localization-upload.yml b/.github/workflows/docs-localization-upload.yml index c764180a60..942fcb3200 100644 --- a/.github/workflows/docs-localization-upload.yml +++ b/.github/workflows/docs-localization-upload.yml @@ -34,8 +34,8 @@ jobs: working-directory: ./docs - name: "Build locales" run: - sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l - hi -l ko -l pt_BR -l es -l zh_CN -l ru -l en + sphinx-intl update -p ./build/locales -l ja -l de -l ja -l fr -l it -l en -l + hi -l ko -l pt_BR -l es -l zh_CN -l ru working-directory: ./docs - name: "Crowdin" uses: crowdin/github-action@v2