From 5b1f4a54166cd14d6dfd60528177d4b7d3312212 Mon Sep 17 00:00:00 2001 From: Stanislav Deviatov Date: Sun, 20 Aug 2023 14:27:25 +0200 Subject: [PATCH] Use latest release --- .github/workflows/github-stars.yml | 15 ++++++++++----- .github/workflows/main.yml | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/github-stars.yml b/.github/workflows/github-stars.yml index 2bff993..0bf12ba 100644 --- a/.github/workflows/github-stars.yml +++ b/.github/workflows/github-stars.yml @@ -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 @@ -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 \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9517408..717b4d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: CI +name: Linting & checking links on: pull_request: branches: [main]