Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! feat: …
Browse files Browse the repository at this point in the history
…validate po files on pull_request
  • Loading branch information
OmarIthawi committed Aug 18, 2023
1 parent 5a6efb4 commit c8f6137
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions .github/workflows/validate-translation-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,4 @@ jobs:
- 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 = 'Test: ' + makeOutput;
// 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: 'Test!',
});
// github.rest.issues.addLabels({
// issue_number: context.issue.number,
// owner: context.repo.owner,
// repo: context.repo.repo,
// labels: ['translations-error']
// })
make validate_translation_files

0 comments on commit c8f6137

Please sign in to comment.