From e9b5f5e774f077d7b9452b65164c3506e65daa82 Mon Sep 17 00:00:00 2001 From: pombas_n Date: Wed, 30 Sep 2026 13:20:38 +0200 Subject: [PATCH 1/4] Update .gitea/workflows/proofread.yaml --- .gitea/workflows/proofread.yaml | 46 ++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/proofread.yaml b/.gitea/workflows/proofread.yaml index 1683c5a9..15ebce2d 100644 --- a/.gitea/workflows/proofread.yaml +++ b/.gitea/workflows/proofread.yaml @@ -1,19 +1,26 @@ -name: Spellcheck +name: Fix Markdown typos on: push: - # branches: - # - "*" - # paths: - # - "**/*.md" + branches: + - main + paths: + - "**/*.md" workflow_dispatch: jobs: fix-typos: - runs-on: ubuntu-latest-intranet + runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Create branch + run: | + git fetch origin main + git checkout -B typos origin/main - name: Fix Markdown typos continue-on-error: true @@ -21,3 +28,30 @@ jobs: with: files: "**/*.md" write_changes: true + + - name: Commit and push fixes + id: changes + run: | + git config user.name "typos-bot" + git config user.email "typos-bot@localhost" + + git add . + git commit -m "fix: correct markdown typos" + git push origin typos --force + + - name: Create pull request + id: pr + uses: https://gitea.psi.ch/linux/documentation@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + repository: ${{ github.repository }} + title: "Fix markdown typos" + body: "Automated typo fixes from crate-ci/typos." + head: typos + base: main + + - name: Show pull request + if: steps.changes.outputs.changed == 'true' + run: | + echo "PR #${{ steps.pr.outputs.number }}" + echo "${{ steps.pr.outputs.html_url }}" \ No newline at end of file From 265f7c70699a2470b7a6b532dd367072f2c86c66 Mon Sep 17 00:00:00 2001 From: pombas_n Date: Wed, 30 Sep 2026 13:21:29 +0200 Subject: [PATCH 2/4] Update .gitea/workflows/proofread.yaml --- .gitea/workflows/proofread.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/proofread.yaml b/.gitea/workflows/proofread.yaml index 15ebce2d..7559ffdb 100644 --- a/.gitea/workflows/proofread.yaml +++ b/.gitea/workflows/proofread.yaml @@ -10,7 +10,7 @@ on: jobs: fix-typos: - runs-on: ubuntu-latest + runs-on: ubuntu-latest-intranet steps: - name: Checkout repository uses: actions/checkout@v5 From dfb533e24c4ad743be5969dcd870eee3ec540068 Mon Sep 17 00:00:00 2001 From: pombas_n Date: Wed, 30 Sep 2026 14:15:31 +0200 Subject: [PATCH 3/4] Update .gitea/workflows/proofread.yaml --- .gitea/workflows/proofread.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/proofread.yaml b/.gitea/workflows/proofread.yaml index 7559ffdb..7c936577 100644 --- a/.gitea/workflows/proofread.yaml +++ b/.gitea/workflows/proofread.yaml @@ -41,7 +41,7 @@ jobs: - name: Create pull request id: pr - uses: https://gitea.psi.ch/linux/documentation@main + uses: actions/pullrequest with: token: ${{ secrets.GITHUB_TOKEN }} repository: ${{ github.repository }} @@ -51,7 +51,6 @@ jobs: base: main - name: Show pull request - if: steps.changes.outputs.changed == 'true' run: | echo "PR #${{ steps.pr.outputs.number }}" echo "${{ steps.pr.outputs.html_url }}" \ No newline at end of file From 9dc2003d07f352b1441daf8946cd034b7b1c4f39 Mon Sep 17 00:00:00 2001 From: pombas_n Date: Wed, 30 Sep 2026 14:15:57 +0200 Subject: [PATCH 4/4] Update .gitea/workflows/proofread.yaml --- .gitea/workflows/proofread.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/proofread.yaml b/.gitea/workflows/proofread.yaml index 7c936577..b8490d1d 100644 --- a/.gitea/workflows/proofread.yaml +++ b/.gitea/workflows/proofread.yaml @@ -41,7 +41,7 @@ jobs: - name: Create pull request id: pr - uses: actions/pullrequest + uses: actions/pullrequest@main with: token: ${{ secrets.GITHUB_TOKEN }} repository: ${{ github.repository }}