Skip to content

Commit

Permalink
replaced the self made downloads counter with a Shields.io badge
Browse files Browse the repository at this point in the history
  • Loading branch information
MavikBow committed Jan 2, 2025
1 parent deb9017 commit fa60b3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/daily-download-scraper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,27 @@ jobs:
max_attempts: 4
command: python scripts/scraper.py

- name: Change README
run: |
python scripts/total_counter.py > output_temp.txt
number=$(cat output_temp.txt)
sed -i "0,/### Total downloads:/s/### Total downloads: [0-9]\+/### Total downloads: $number/" README.md
rm output_temp.txt
# - name: Change README
# run: |
# python scripts/total_counter.py > output_temp.txt
# number=$(cat output_temp.txt)
# sed -i "0,/### Total downloads:/s/### Total downloads: [0-9]\+/### Total downloads: $number/" README.md
# rm output_temp.txt

- name: Commit change in download_data.json
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add download_data.json README.md
git add download_data.json # README.md
git commit -m "daily data update"
git push origin automation
- name: Sync specific files to main
run: |
git fetch origin
git checkout main
git checkout automation -- download_data.json README.md
git add download_data.json README.md
git checkout automation -- download_data.json # README.md
git add download_data.json # README.md
- name: Commit or amend
run: |
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# DoBetterConfig
# DoBetterConfig [![Downloads](https://img.shields.io/github/downloads/MavikBow/DoBetterConfig/total?color=4c1)](https://github.com/MavikBow/DoBetterConfig/releases)

![screenshot\_v111.png](/screenshot_v111.png)

This is a supplementary program for the 2004 video game Cave Story, that allows greater flexibility with control settings.

### Total downloads: 537

## Table of contents

- [DoBetterConfig](#dobetterconfig)
- [DoBetterConfig](#dobetterconfig----)
- [Table of contents](#table-of-contents)
- [What is this app?](#what-is-this-app)
- [How to use the app?](#how-to-use-the-app)
Expand Down

0 comments on commit fa60b3f

Please sign in to comment.