Skip to content

Update README.md

Update README.md #20

Workflow file for this run

name: Update Stars Badge
name: Install jq

Check failure on line 2 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
uses: dcarbone/[email protected]
on:
schedule:
- cron: "0 * * * *"
jobs:
update-badge:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Update Stars Badge
run: |
stars=$(curl -s https://api.github.com/repos/knightfall01/Hyprland-i3 | jq -r .stargazers_count)
sed -i "s/badge\/stars-[0-9]*-brightgreen/badge\/stars-$stars-brightgreen/" README.md
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -am "Update stars badge [skip ci]"
git push
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}