Skip to content

idea: synapse wrapped #37

idea: synapse wrapped

idea: synapse wrapped #37

Workflow file for this run

name: Update README with Ideas
on:
issues:
types: [opened, edited]
permissions:
contents: write
issues: read
jobs:
update-readme:
runs-on: ubuntu-latest
if: startsWith(github.event.issue.title, 'idea:')
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Update README
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_BODY: ${{ github.event.issue.body }}
REPO_URL: ${{ github.event.repository.html_url }}
run: python .github/scripts/update_readme.py
- name: Commit changes
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add README.md
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "Update README with new idea issue"
git push
fi