From a63f061ab6014be2b13e6c75c34acbee3146a185 Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Sat, 22 Jun 2024 19:58:21 +0300 Subject: [PATCH] improve stats workflow Signed-off-by: Ari Archer --- stats.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/stats.yaml b/stats.yaml index 37f4581..5173e77 100644 --- a/stats.yaml +++ b/stats.yaml @@ -17,16 +17,12 @@ jobs: with: token: ${{ secrets.GIT_TOKEN }} - - name: Check for Skip CI in Last Commit + - name: Set up repository id: check_commit run: | git reset --hard git pull git reset --hard - commit_message=$(git log -1 --pretty=%B) - if echo "$commit_message" | grep -q "\[skip ci\]"; then - echo "Skip CI based on commit message" && exit 78; - fi - uses: actions/setup-python@v5 with: @@ -52,7 +48,6 @@ jobs: else git config --local user.email "stats@localhost" git config --local user.name "Stats CI/CD" - git add commits.png languages.png git commit -am "[skip ci] Update stats" || echo "No changes to commit" git push origin HEAD -f fi