From 94a8c817ac03dc56af468eb36f51ffa999042d43 Mon Sep 17 00:00:00 2001 From: Arthur Araujo Date: Sun, 5 Jan 2025 18:18:17 -0300 Subject: [PATCH] No longer using temp variable --- .github/workflows/update-missing-translations.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/update-missing-translations.yml b/.github/workflows/update-missing-translations.yml index 86e09b8c..74c05cd4 100644 --- a/.github/workflows/update-missing-translations.yml +++ b/.github/workflows/update-missing-translations.yml @@ -18,20 +18,12 @@ jobs: - name: Write missing translation to file run: | python scripts/check_languages.py -output missing.md -report_summary -report_key_mismatch -report_missing_translations - - name: Get comment body - id: get-comment-body - run: | - body=$(cat missing.md) - body="${body//'%'/'%25'}" - body="${body//$'\n'/'%0A'}" - body="${body//$'\r'/'%0D'}" - echo "body=$body" >> $GITHUB_OUTPUT - name: Update comment - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v4 with: # Update the comment in issue 475 # https://github.com/TTLApp/time-to-leave/issues/475#issuecomment-808787273 comment-id: 808787273 edit-mode: replace - body: ${{ steps.get-comment-body.outputs.body }} + body-path: missing.md reactions: hooray