We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validate_translaiton
Add the following to the validate-translation-files.yml for better Developer Experience:
validate-translation-files.yml
- name: Validate translation files id: validate_translation_files run: | make validate_translation_files 2>&1 > make_output.txt - name: Send failure comment if: failure() uses: actions/github-script@v5 with: script: | const fs = require('fs'); const makeOutput = fs.readFileSync('make_output.txt', 'utf8'); const comment = ` This pull request contains invalid translation files. Please fix the errors and push again. <details><summary>Output from `make validate_translation_files`</summary> \`\`\` ${makeOutput} \`\`\` </details> This comment was posted by the `validate-translation-files.yml` GitHub workflow. `; github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, body: comment, }); github.rest.issues.addLabels({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, labels: ['translations-error'], })
This is related to #564
The text was updated successfully, but these errors were encountered:
Done.
Sorry, something went wrong.
No branches or pull requests
Description
Add the following to the
validate-translation-files.yml
for better Developer Experience:Related PR
This is related to #564
The text was updated successfully, but these errors were encountered: