Skip to content

Commit

Permalink
🧹 Add extra logging when unlocking Weblate (hedyorg#5734)
Browse files Browse the repository at this point in the history
We have seen evidence of the `wlc unlock` command not unlocking anything. Add more debugging to see what's going on, so that we can create a bug report to Weblate.

The `wlc --debug` flag also prints out the API key, so we have to make sure to mask the API key out again so it doesn't end up in the logs.
  • Loading branch information
rix0rrr authored Sep 1, 2024
1 parent e6ddbd7 commit a46e58e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/unlock-weblate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
echo 'https://hosted.weblate.org/api/ = ${{ secrets.WEBLATE_API_KEY }}' >> .weblate
- run: |
# Have to lock each component individually. Not in the UI, but using the CLI we do.
set -x
for component in glossary adventures keywords quizzes commands client-messages web-texts webpages parsons tutorials slides; do
wlc unlock hedy/$component
done
wlc --debug unlock hedy/$component | sed 's/${{ secrets.WEBLATE_API_KEY }}/*****/g'
done
echo "All components unlocked!"

0 comments on commit a46e58e

Please sign in to comment.