Skip to content

"Claude Code Review workflow" #4

"Claude Code Review workflow"

"Claude Code Review workflow" #4

Workflow file for this run

- name: Run copy-edit bot

Check failure on line 1 in .github/workflows/bot-change.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/bot-change.yml

Invalid workflow file

(Line: 1, Col: 7): A sequence was not expected
env:
CHANGE_INSTRUCTION: ${{ github.event.inputs.change }}
run: |
mkdir -p scripts
cat <<'PY' > scripts/auto_edit.py
import pathlib
search_text = "Add React to an Existing Project"
replace_text = "Add React to your Existing Project"
# loop through all .md files in the repo
for md_file in pathlib.Path('.').rglob('*.md'):
content = md_file.read_text()
if search_text in content:
md_file.write_text(content.replace(search_text, replace_text))
print(f"Updated {md_file}")
PY
python3 scripts/auto_edit.py
git config user.name "github-actions"
git config user.email "actions@github.com"
git add .
git commit -m "bot: apply copy edit" || echo "No changes to commit"
git push