Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
madushadhanushka authored Jun 18, 2022
1 parent dc2176e commit 2958ebc
Showing 1 changed file with 15 additions and 46 deletions.
61 changes: 15 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,52 +166,6 @@ jobs:
```
<img alt="followers" src="https://img.shields.io/github/followers/madushadhanushka?label=Followers&style=social">

---
### Top Github followers
Create the following GitHub actions
```
name: Get Top Followers
on:
push:
branches:
- master
schedule:
- cron: '0 22 * * *'
workflow_dispatch:
jobs:
top-followers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install requests
run: pip install requests
- name: Update README
run: python src/getTopFollowers.py ${{ github.repository_owner }} ${{ secrets.GITHUB_TOKEN }} README.md
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || git commit -m "Update top followers"
- name: Pull changes
run: git pull -r
- name: Push changes
uses: ad-m/github-push-action@b007e7b818e33b04afd056e4c4b57ba917145d7a
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
```
Now add the following into your readme page
```
<!--START_SECTION:top-followers-->
<!--END_SECTION:top-followers-->
```
<!--START_SECTION:top-followers-->
<!--END_SECTION:top-followers-->
---

### Total stars
Expand Down Expand Up @@ -318,3 +272,18 @@ Following is an example use of
[![Codewars Badge](https://www.codewars.com/users/dhanushka/badges/large)](https://www.codewars.com/users/dhanushka)

---

### Stackoverflow stats
```
[![Dhanushka StackOverflow](https://github-readme-stackoverflow.vercel.app/?userID=3840208)](https://stackoverflow.com/users/3840208/dhanushka)
```

[![Dhanushka StackOverflow](https://github-readme-stackoverflow.vercel.app/?userID=3840208)](https://stackoverflow.com/users/3840208/dhanushka)

More details: [https://github.com/omidnikrah/github-readme-stackoverflow](https://github.com/omidnikrah/github-readme-stackoverflow)

---

### Useful links

[https://github.com/rzashakeri/beautify-github-profile](https://github.com/rzashakeri/beautify-github-profile)

0 comments on commit 2958ebc

Please sign in to comment.