update-my-contributions #1262
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: update-my-contributions | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
resources: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
- name: Get Updates | |
run: | | |
sudo apt install python3-setuptools | |
git clone https://github.com/rushabh-v/Show-Your-Contributions | |
cp -r ./Show-Your-Contributions/* ./ | |
pip3 install pygithub | |
python3 fetch_contribs.py ${{ secrets.GIT_TOKEN }} | |
python3 generate_doc.py ${{ secrets.GIT_TOKEN }} | |
- name: Commit | |
uses: test-room-7/action-update-file@v1 | |
with: | |
file-path: | | |
contributions.html | |
total_contribs | |
commit-msg: Updated resources | |
github-token: ${{ secrets.GIT_TOKEN }} |