From d79e80f30cb70e34a65654ba74b32c0024896aab Mon Sep 17 00:00:00 2001 From: 3022-2 <82278708+3022-2@users.noreply.github.com> Date: Sun, 4 Aug 2024 00:30:17 +0100 Subject: [PATCH] Delete .github/workflows directory --- .github/workflows/clone-count.yml | 35 ------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 .github/workflows/clone-count.yml diff --git a/.github/workflows/clone-count.yml b/.github/workflows/clone-count.yml deleted file mode 100644 index 81d74a3..0000000 --- a/.github/workflows/clone-count.yml +++ /dev/null @@ -1,35 +0,0 @@ -#used chatgpt for this lol - -name: Clone Count - -on: - schedule: - - cron: '0 0 * * *' - push: - branches: - - main - -jobs: - update-clone-count: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Fetch clone count - run: | - CLONE_COUNT=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/traffic/clones \ - | jq '.count') - echo "clone_count=${CLONE_COUNT}" >> $GITHUB_ENV - - - name: Update badge - run: | - curl -o clone-count-badge.svg "https://img.shields.io/badge/Clones-${{ env.clone_count }}-brightgreen" - git config --global user.name 'github-actions' - git config --global user.email 'github-actions@github.com' - git add clone-count-badge.svg - git commit -m "Update clone count badge" - git push