Merge branch 'main' into linux-implementation-1 #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run compare.py and update README | |
on: | |
push: | |
branches: | |
- '**' # This will trigger the workflow on any branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository content | |
uses: actions/checkout@v2 | |
- name: Set up Python environment | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r Tools/compare-requirements.txt # If you have dependencies | |
- name: Run Python script to update README | |
run: python Tools/compare.py # Update the script to edit README.md directly | |
- name: Commit and push changes | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git add README.md | |
git commit -m "Update EDR scores table in README" | |
git push |