Skip to content

Commit

Permalink
[ci skip] fix(actions): i hate it here
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Aug 13, 2024
1 parent ff37a75 commit 623e7c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/docs-localization-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand 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
Expand Down Expand Up @@ -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}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/docs-localization-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 623e7c4

Please sign in to comment.