From 9f36e72f2b78557ad90dcd2b0854849f59266bcd Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Sun, 13 Feb 2022 12:01:03 -0600 Subject: [PATCH 01/22] wip: github action to run pospell --- .github/workflows/pospell.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/pospell.yml diff --git a/.github/workflows/pospell.yml b/.github/workflows/pospell.yml new file mode 100644 index 0000000000..bee555f58e --- /dev/null +++ b/.github/workflows/pospell.yml @@ -0,0 +1,42 @@ +name: pospell +on: + issue_comment: + types: + - created + +jobs: + fix-spell: + name: Fix spelling + runs-on: ubuntu-latest + if: ${{ github.event.comment.body == 'pospell-fix'}} + steps: + - name: Confirm process + 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@v2 + - name: Preparar Python v3.10 + uses: actions/setup-python@v2 + with: + python-version: "3.10" + - 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: Powrap + run: powrap --quiet **/*.po + - name: Pospell + run: python scripts/check_spell.py + - name: Commit & Push changes + uses: actions-js/push@master + with: + message: "auto: spell check" + github_token: ${{ secrets.GITHUB_TOKEN }} From 4784132e166429e68f6c0b04c080ce874b2de30a Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Mon, 3 Oct 2022 16:37:41 -0500 Subject: [PATCH 02/22] fix: execute only on PR --- .github/workflows/pospell.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pospell.yml b/.github/workflows/pospell.yml index bee555f58e..92c60395a9 100644 --- a/.github/workflows/pospell.yml +++ b/.github/workflows/pospell.yml @@ -8,7 +8,9 @@ jobs: fix-spell: name: Fix spelling runs-on: ubuntu-latest - if: ${{ github.event.comment.body == 'pospell-fix'}} + if: | + github.event.comment.body == 'pospell-fix' + && github.event.issue.pull_request steps: - name: Confirm process uses: actions/github-script@v6 From b60f9014d846da50e27c2b95516fc7f118a53771 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Mon, 3 Oct 2022 17:07:35 -0500 Subject: [PATCH 03/22] Apply suggestions from code review Co-authored-by: Ezio Melotti --- .github/workflows/pospell.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pospell.yml b/.github/workflows/pospell.yml index 92c60395a9..67907b52ab 100644 --- a/.github/workflows/pospell.yml +++ b/.github/workflows/pospell.yml @@ -23,11 +23,12 @@ jobs: comment_id: context.payload.comment.id, content: "+1", }); - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Preparar Python v3.10 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "3.10" + cache: 'pip' - name: Instalar dependencias run: | sudo apt-get update From 94a5617bb0f52e2f66f1a0af10b29d1a524f973e Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Mon, 3 Oct 2022 17:12:06 -0500 Subject: [PATCH 04/22] rename and add continue-on-error --- .github/workflows/pospell-on-demand.yml | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/pospell-on-demand.yml diff --git a/.github/workflows/pospell-on-demand.yml b/.github/workflows/pospell-on-demand.yml new file mode 100644 index 0000000000..16e48dec90 --- /dev/null +++ b/.github/workflows/pospell-on-demand.yml @@ -0,0 +1,46 @@ +name: pospell +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 + - name: Commit & Push changes + uses: actions-js/push@master + with: + message: "auto: spell check" + github_token: ${{ secrets.GITHUB_TOKEN }} From 4c88e59bc3553942a8dac036bdc5eb338db69375 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Mon, 3 Oct 2022 18:08:34 -0500 Subject: [PATCH 05/22] one liner to avoid confusion --- .github/workflows/pospell.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pospell.yml b/.github/workflows/pospell.yml index 67907b52ab..d0bcf844f2 100644 --- a/.github/workflows/pospell.yml +++ b/.github/workflows/pospell.yml @@ -2,15 +2,14 @@ name: pospell on: issue_comment: types: + - edited - created jobs: fix-spell: name: Fix spelling runs-on: ubuntu-latest - if: | - github.event.comment.body == 'pospell-fix' - && github.event.issue.pull_request + if: ${{ github.event.issue.pull_request && github.event.comment.body == 'pospell-fix' }} steps: - name: Confirm process uses: actions/github-script@v6 @@ -28,7 +27,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.10" - cache: 'pip' + cache: "pip" - name: Instalar dependencias run: | sudo apt-get update From 5e8294d2746eeeda96f05c94c5458d053bfb7c69 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 00:59:35 -0500 Subject: [PATCH 06/22] Update check_spell.py --- scripts/check_spell.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/check_spell.py b/scripts/check_spell.py index e9193665f6..001c13f7f6 100644 --- a/scripts/check_spell.py +++ b/scripts/check_spell.py @@ -22,9 +22,7 @@ # Write merged dictionary file output_filename = tempfile.mktemp(suffix="_merged_dict.txt") with open(output_filename, "w") as f: - for e in entries: - f.write(e) - f.write("\n") + f.writelines(entries) # Run pospell either against all files or the file given on the command line po_files = sys.argv[1:] From e97b23426b9c9c5edbfde108e919d169d69b8722 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 18:37:32 -0500 Subject: [PATCH 07/22] delete duplicated file --- .github/workflows/pospell-on-demand.yml | 5 ++- .github/workflows/pospell.yml | 44 ------------------------- 2 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/pospell.yml diff --git a/.github/workflows/pospell-on-demand.yml b/.github/workflows/pospell-on-demand.yml index 16e48dec90..d65c9aa620 100644 --- a/.github/workflows/pospell-on-demand.yml +++ b/.github/workflows/pospell-on-demand.yml @@ -2,15 +2,14 @@ name: pospell on: issue_comment: types: + - edited - created jobs: fix-spell: name: Fix spelling runs-on: ubuntu-latest - if: | - github.event.comment.body == 'run-powrap' - && github.event.issue.pull_request + if: ${{ github.event.issue.pull_request && github.event.comment.body == 'pospell-fix' }} steps: - name: Confirmar ejecucion uses: actions/github-script@v6 diff --git a/.github/workflows/pospell.yml b/.github/workflows/pospell.yml deleted file mode 100644 index d0bcf844f2..0000000000 --- a/.github/workflows/pospell.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: pospell -on: - issue_comment: - types: - - edited - - created - -jobs: - fix-spell: - name: Fix spelling - runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && github.event.comment.body == 'pospell-fix' }} - steps: - - name: Confirm process - 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: Powrap - run: powrap --quiet **/*.po - - name: Pospell - run: python scripts/check_spell.py - - name: Commit & Push changes - uses: actions-js/push@master - with: - message: "auto: spell check" - github_token: ${{ secrets.GITHUB_TOKEN }} From a298acd19fb342ef70c1223a25f93648654d8d0f Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 18:44:13 -0500 Subject: [PATCH 08/22] fix createforIssueComment --- .github/workflows/pospell-on-demand.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pospell-on-demand.yml b/.github/workflows/pospell-on-demand.yml index d65c9aa620..5a97b4d1bd 100644 --- a/.github/workflows/pospell-on-demand.yml +++ b/.github/workflows/pospell-on-demand.yml @@ -15,10 +15,9 @@ jobs: uses: actions/github-script@v6 with: script: | - const {owner, repo} = context.issue - github.reactions.createForIssueComment({ - owner, - repo, + await github.rest.issues.createForIssueComment({ + context.repo.owner, + context.repo.repo, comment_id: context.payload.comment.id, content: "+1", }); From c6cd5c9f1dc505c3c1e22f4bc1976652315fd749 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 18:57:51 -0500 Subject: [PATCH 09/22] react to comment --- .github/workflows/pospell-on-demand.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pospell-on-demand.yml b/.github/workflows/pospell-on-demand.yml index 5a97b4d1bd..ad311e20b8 100644 --- a/.github/workflows/pospell-on-demand.yml +++ b/.github/workflows/pospell-on-demand.yml @@ -12,15 +12,13 @@ jobs: if: ${{ github.event.issue.pull_request && github.event.comment.body == 'pospell-fix' }} steps: - name: Confirmar ejecucion - uses: actions/github-script@v6 - with: - script: | - await github.rest.issues.createForIssueComment({ - context.repo.owner, - context.repo.repo, - comment_id: context.payload.comment.id, - content: "+1", - }); + continue-on-error: true + run: | + curl ${{github.event.comment.url}}/reactions \ + -X POST \ + -d '{"content":"+1"}' \ + -H "Accept: application/vnd.github.squirrel-girl-preview+json" \ + -H "Authorization: token ${{github.token}}" - uses: actions/checkout@v3 - name: Preparar Python v3.10 uses: actions/setup-python@v4 From 48359fa3f87c1d60e09b6f99eb925a853cc15cf2 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 19:00:22 -0500 Subject: [PATCH 10/22] Update pospell-on-demand.yml --- .github/workflows/pospell-on-demand.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pospell-on-demand.yml b/.github/workflows/pospell-on-demand.yml index ad311e20b8..22f691e610 100644 --- a/.github/workflows/pospell-on-demand.yml +++ b/.github/workflows/pospell-on-demand.yml @@ -18,7 +18,7 @@ jobs: -X POST \ -d '{"content":"+1"}' \ -H "Accept: application/vnd.github.squirrel-girl-preview+json" \ - -H "Authorization: token ${{github.token}}" + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" - uses: actions/checkout@v3 - name: Preparar Python v3.10 uses: actions/setup-python@v4 From 1f6c82f8d4daa026120315ee008fe21d7007de6e Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 20:27:52 -0500 Subject: [PATCH 11/22] add cache apt action --- .github/workflows/pospell-on-demand.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pospell-on-demand.yml b/.github/workflows/pospell-on-demand.yml index ad311e20b8..6f9003d99e 100644 --- a/.github/workflows/pospell-on-demand.yml +++ b/.github/workflows/pospell-on-demand.yml @@ -20,6 +20,10 @@ jobs: -H "Accept: application/vnd.github.squirrel-girl-preview+json" \ -H "Authorization: token ${{github.token}}" - uses: actions/checkout@v3 + - uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: hunspell hunspell-es gettext + version: 1.0 - name: Preparar Python v3.10 uses: actions/setup-python@v4 with: @@ -27,8 +31,6 @@ jobs: 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 From ecc94e169a3f7cf4dc9cdae4c3b7fd7f2295b716 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 20:30:13 -0500 Subject: [PATCH 12/22] fix: add apt cache --- .github/workflows/pospell-on-demand.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pospell-on-demand.yml b/.github/workflows/pospell-on-demand.yml index 22f691e610..e543767d27 100644 --- a/.github/workflows/pospell-on-demand.yml +++ b/.github/workflows/pospell-on-demand.yml @@ -20,16 +20,17 @@ jobs: -H "Accept: application/vnd.github.squirrel-girl-preview+json" \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" - uses: actions/checkout@v3 + - uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: hunspell hunspell-es gettext + version: 1.0 - 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 + run: python -m pip install -r requirements.txt - name: Ejecutar Powrap run: powrap --quiet **/*.po - name: Revisar con Pospell From beb9bfe610e1db15a650c787c46f8d6442c95e4d Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 20:45:30 -0500 Subject: [PATCH 13/22] Rollback a check_spell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Este cambio no está relacionado al PR, así que no hace sentido tenerlo acá. --- scripts/check_spell.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/check_spell.py b/scripts/check_spell.py index 001c13f7f6..599b2829aa 100644 --- a/scripts/check_spell.py +++ b/scripts/check_spell.py @@ -22,7 +22,9 @@ # Write merged dictionary file output_filename = tempfile.mktemp(suffix="_merged_dict.txt") with open(output_filename, "w") as f: - f.writelines(entries) + for e in entries: + f.write(e) + f.write('\n') # Run pospell either against all files or the file given on the command line po_files = sys.argv[1:] From 75fd847dc8151921243dc23b42a0d1f38ffb16f8 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 23:21:20 -0500 Subject: [PATCH 14/22] Update scripts/check_spell.py --- scripts/check_spell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_spell.py b/scripts/check_spell.py index 599b2829aa..e9193665f6 100644 --- a/scripts/check_spell.py +++ b/scripts/check_spell.py @@ -24,7 +24,7 @@ with open(output_filename, "w") as f: for e in entries: f.write(e) - f.write('\n') + f.write("\n") # Run pospell either against all files or the file given on the command line po_files = sys.argv[1:] From 55fe5e7d34bbe9f98802dff4402cd2c795f62321 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 23:28:16 -0500 Subject: [PATCH 15/22] Apply suggestions from code review --- .github/workflows/pospell-on-demand.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pospell-on-demand.yml b/.github/workflows/pospell-on-demand.yml index e543767d27..9333b1f4d1 100644 --- a/.github/workflows/pospell-on-demand.yml +++ b/.github/workflows/pospell-on-demand.yml @@ -1,4 +1,4 @@ -name: pospell +name: Ejecuta powrap on: issue_comment: types: @@ -33,11 +33,7 @@ jobs: run: 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 - name: Commit & Push changes - uses: actions-js/push@master + uses: stefanzweifel/git-auto-commit-action@v4 with: - message: "auto: spell check" - github_token: ${{ secrets.GITHUB_TOKEN }} + commit_message: "auto: spell check" From 0f8c793b89a1f4caa62876f37d45f4dd1261a934 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 23:28:59 -0500 Subject: [PATCH 16/22] Update .github/workflows/pospell-on-demand.yml --- .github/workflows/pospell-on-demand.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pospell-on-demand.yml b/.github/workflows/pospell-on-demand.yml index 9333b1f4d1..0fa9bc6094 100644 --- a/.github/workflows/pospell-on-demand.yml +++ b/.github/workflows/pospell-on-demand.yml @@ -9,7 +9,7 @@ jobs: fix-spell: name: Fix spelling runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && github.event.comment.body == 'pospell-fix' }} + if: ${{ github.event.issue.pull_request && github.event.comment.body == 'powrap-fix' }} steps: - name: Confirmar ejecucion continue-on-error: true From fe0bbdaf5f585955b188dea488b8781271c5b0d2 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Tue, 4 Oct 2022 23:39:23 -0500 Subject: [PATCH 17/22] Rename pospell-on-demand.yml to execute-powrap.yml --- .github/workflows/{pospell-on-demand.yml => execute-powrap.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{pospell-on-demand.yml => execute-powrap.yml} (100%) diff --git a/.github/workflows/pospell-on-demand.yml b/.github/workflows/execute-powrap.yml similarity index 100% rename from .github/workflows/pospell-on-demand.yml rename to .github/workflows/execute-powrap.yml From 2bcf7eacd90301b5082f2b80c7d206dbd4b766f7 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Fri, 7 Oct 2022 20:37:21 -0500 Subject: [PATCH 18/22] rollback to previous commit action --- .github/workflows/execute-powrap.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/execute-powrap.yml b/.github/workflows/execute-powrap.yml index 0fa9bc6094..a1e2a230f8 100644 --- a/.github/workflows/execute-powrap.yml +++ b/.github/workflows/execute-powrap.yml @@ -1,4 +1,5 @@ name: Ejecuta powrap + on: issue_comment: types: @@ -34,6 +35,7 @@ jobs: - name: Ejecutar Powrap run: powrap --quiet **/*.po - name: Commit & Push changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: actions-js/push@master with: - commit_message: "auto: spell check" + message: "auto: spell check" + github_token: ${{ secrets.GITHUB_TOKEN }} From da6981a3714613562cf302f07076029b03fdb3dc Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Fri, 7 Oct 2022 20:47:13 -0500 Subject: [PATCH 19/22] Add branch name to action-js --- .github/workflows/execute-powrap.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/execute-powrap.yml b/.github/workflows/execute-powrap.yml index a1e2a230f8..9c4e9978cd 100644 --- a/.github/workflows/execute-powrap.yml +++ b/.github/workflows/execute-powrap.yml @@ -38,4 +38,5 @@ jobs: uses: actions-js/push@master with: message: "auto: spell check" + branch: ${GITHUB_REF##*/} github_token: ${{ secrets.GITHUB_TOKEN }} From b821192244672d24bdcc681ef74f35ee6b9642d2 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Fri, 7 Oct 2022 21:00:45 -0500 Subject: [PATCH 20/22] Update execute-powrap.yml --- .github/workflows/execute-powrap.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/execute-powrap.yml b/.github/workflows/execute-powrap.yml index 9c4e9978cd..17209148ef 100644 --- a/.github/workflows/execute-powrap.yml +++ b/.github/workflows/execute-powrap.yml @@ -38,5 +38,5 @@ jobs: uses: actions-js/push@master with: message: "auto: spell check" - branch: ${GITHUB_REF##*/} + branch: ${{ github.ref }} github_token: ${{ secrets.GITHUB_TOKEN }} From 111a24d9ee2753f21dfe2e73c8720298bac13e37 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Fri, 7 Oct 2022 21:05:26 -0500 Subject: [PATCH 21/22] Update execute-powrap.yml --- .github/workflows/execute-powrap.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/execute-powrap.yml b/.github/workflows/execute-powrap.yml index 17209148ef..4e3838cad4 100644 --- a/.github/workflows/execute-powrap.yml +++ b/.github/workflows/execute-powrap.yml @@ -38,5 +38,5 @@ jobs: uses: actions-js/push@master with: message: "auto: spell check" - branch: ${{ github.ref }} + branch: ${{ github.head_ref }} github_token: ${{ secrets.GITHUB_TOKEN }} From 5f3b13666f1adfcdb0a2c755f4f96f46ba390ec9 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Fri, 28 Oct 2022 13:17:06 -0500 Subject: [PATCH 22/22] Reducir la carga eliminando otras dependencias --- .github/workflows/execute-powrap.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/execute-powrap.yml b/.github/workflows/execute-powrap.yml index 4e3838cad4..c1469bee04 100644 --- a/.github/workflows/execute-powrap.yml +++ b/.github/workflows/execute-powrap.yml @@ -7,8 +7,8 @@ on: - created jobs: - fix-spell: - name: Fix spelling + ejecutar-powrap: + name: Revisa y repara el formato con Powrap runs-on: ubuntu-latest if: ${{ github.event.issue.pull_request && github.event.comment.body == 'powrap-fix' }} steps: @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v3 - uses: awalsh128/cache-apt-pkgs-action@latest with: - packages: hunspell hunspell-es gettext + packages: gettext version: 1.0 - name: Preparar Python v3.10 uses: actions/setup-python@v4 @@ -31,7 +31,7 @@ jobs: python-version: "3.10" cache: "pip" - name: Instalar dependencias - run: python -m pip install -r requirements.txt + run: python -m pip install powrap - name: Ejecutar Powrap run: powrap --quiet **/*.po - name: Commit & Push changes pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy