Skip to content

Update README with badge #13

Update README with badge

Update README with badge #13

Workflow file for this run

name: Update README with badge
on:
workflow_run:
workflows: ["Norminette CI"]
types:
- completed
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download status badge
uses: actions/download-artifact@v2
with:
name: badge
- name: Update README
run: |
BADGE=$(cat badge.md)
sed -i '/\[Norminette\]:/c\\[Norminette\]: '"$BADGE" README.md
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add README.md
git commit -m 'Update Norminette status badge'
git push