Skip to content

get result observers to work #8

get result observers to work

get result observers to work #8

Workflow file for this run

# -----------------------------------------------------------------------------
# - invoked on push to any branch
# -----------------------------------------------------------------------------
name: update README
on: push
jobs:
update-readme:
runs-on: ubuntu-latest
steps:

Check failure on line 10 in .github/workflows/update_readme.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update_readme.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Update README
run: |
pip install packaging
python update_readme.py
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions"
git diff --quiet && git diff --staged --quiet || (
git add README.rst
git commit -am "update README with supported Python versions"
git pull --rebase origin ${{ github.ref_name }}
git push origin ${{ github.ref_name }}
)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}