Skip to content

Commit

Permalink
Use latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
stn1slv authored Aug 20, 2023
1 parent 01f1e4d commit 5b1f4a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/github-stars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
git pull origin main
- name: Download Markdown GitHub Stars updater
run: |
wget -O markdown-github-stars-updater https://github.com/stn1slv/markdown-github-stars-updater/releases/download/v0.0.4/markdown-github-stars-updater-linux-amd64
wget -O markdown-github-stars-updater https://github.com/stn1slv/markdown-github-stars-updater/releases/latest/download/markdown-github-stars-updater-linux-amd64
- name: Make executable
run: chmod +x ./markdown-github-stars-updater
# - name: Debug Information
Expand All @@ -36,7 +36,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit report
run: |
git status
git add README.md
git commit -am "Github stars updated"
git push origin main
# Check if there are any changes
if [ -n "$(git diff --exit-code)" ]; then
git status
git add README.md
git commit -am "Github stars updated"
git push origin main
else
echo "No changes to commit."
fi
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Linting & checking links
on:
pull_request:
branches: [main]
Expand Down

0 comments on commit 5b1f4a5

Please sign in to comment.