forked from linux/documentation
Update .gitea/workflows/proofread.yaml
cleanup workflow
This commit is contained in:
1 parent
bbf78d271f
commit
d8dc86ead1
1 file changed
+4
-17
@@ -14,13 +14,6 @@ jobs:
|
||||
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
|
||||
@@ -29,9 +22,12 @@ jobs:
|
||||
files: "**/*.md"
|
||||
write_changes: true
|
||||
|
||||
- name: Commit and push fixes
|
||||
- name: Commit to branch and push fixes
|
||||
id: changes
|
||||
run: |
|
||||
git fetch origin main
|
||||
git checkout -B typos origin/main
|
||||
|
||||
git config user.name "typos-bot"
|
||||
git config user.email "typos-bot@localhost"
|
||||
|
||||
@@ -40,17 +36,8 @@ jobs:
|
||||
git push origin typos --force
|
||||
|
||||
- name: Create pull request
|
||||
id: pr
|
||||
uses: actions/pullrequest@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
|
||||
run: |
|
||||
echo "PR #${{ steps.pr.outputs.number }}"
|
||||
echo "${{ steps.pr.outputs.html_url }}"
|
||||
Reference in new issue
Block a user