Skip to content

Update FOOPS Score Badge #10

Update FOOPS Score Badge

Update FOOPS Score Badge #10

name: Update FOOPS Score Badge
on:
workflow_run:
workflows: ["docs"]
types:
- completed
env:
GIT_USER_NAME: BattINFO Developers
GIT_USER_EMAIL: "BattINFO@big-map.org"
jobs:
update-badge:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install requests
- name: Fetch FOOPS score and update badge
run: |
python docs/scripts/generate_foops_badge.py
- name: Configure Git
run: |
git config --local user.email "BattINFO@big-map.org"
git config --local user.name "BattINFO Developers"
- name: Check for changes in README.md
run: |
git add README.md
git status
git diff --staged
- name: Commit changes
run: |
git add README.md
git commit -m "Update FOOPS score badge" || echo "No changes to commit"
- name: Push changes
run: git push origin HEAD:main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push changes
run: git push origin HEAD:main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}