Skip to content

Added recent results #11

Added recent results

Added recent results #11

Workflow file for this run

# .github/workflows/render_readme.yml
name: Render new README based on tally updates
on:
pull_request:
branches:
- main
paths:
- assets/positivity_tally.tsv
- .github/workflows/render_readme.yml
- scripts/splice_readme.py
- DETECTION_RESULTS.tsv
jobs:
render-readme:
name: Render new README
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install Dependencies
run: |
pip install uv
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
- name: Generate Markdown Table
run: |
source .venv/bin/activate
python3 scripts/tsv_to_md.py \
assets/positivity_tally.tsv \
> assets/positivity_tally.md
- name: Splice Table into README
run: |
source .venv/bin/activate
python3 scripts/splice_readme.py
- name: Replace previous README
run: |
rm README.md && \
mv new_readme.md README.md
- name: Commit Updated README
if: success()
run: |
git config --global user.name 'GitHub Actions Bot'
git config --global user.email '[email protected]'
git add README.md
git fetch origin proposals
git commit -m "Updated the README file"
git push --force-with-lease origin HEAD:proposals