Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork400
Github Action para ejecutar powrap fix con un comentario#1836
New issue
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:3.13
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
9f36e724784132b60f90194a56174c88e598a350705e8294de97b234a298acd89efe08c6cd5c94660c6048359fa1f6c82fecc94e1284a519b6203360e43ecabeb9bfe75fd84755fe5e70f8c793fe0bbda64a4e232bcf7ea26e3093da6981a3f5ac33b821192bbef6e3111a24dc03192f0b465a55f3b136c609c52File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: pospell | ||
erickisos marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| on: | ||
| issue_comment: | ||
| types: | ||
| - created | ||
| jobs: | ||
| fix-spell: | ||
| name: Fix spelling | ||
| runs-on: ubuntu-latest | ||
| if: | | ||
| github.event.comment.body == 'run-powrap' | ||
| && github.event.issue.pull_request | ||
| steps: | ||
| - name: Confirmar ejecucion | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| script: | | ||
| const {owner, repo} = context.issue | ||
| github.reactions.createForIssueComment({ | ||
| owner, | ||
| repo, | ||
| comment_id: context.payload.comment.id, | ||
| content: "+1", | ||
| }); | ||
| - uses: actions/checkout@v3 | ||
| - name: Preparar Python v3.10 | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.10" | ||
| cache: "pip" | ||
| - name: Instalar dependencias | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y hunspell hunspell-es gettext | ||
| python -m pip install -r requirements.txt | ||
| - name: Ejecutar Powrap | ||
| run: powrap --quiet **/*.po | ||
| - name: Revisar con Pospell | ||
| ||
| run: python scripts/check_spell.py | ||
| continue-on-error: true | ||
erickisos marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page.
erickisos marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| - name: Commit & Push changes | ||
rtobar marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| uses: actions-js/push@master | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Tambien hayesta action que parece hacer el mismo, pero en el marketplace tiene 1k star ( CollaboratorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Hice el cambio solo para hacer la prueba, si vemos que no nos funciona as expected, le damos de vuelta a la que teníamos | ||
| with: | ||
| message: "auto: spell check" | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
erickisos marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||