Skip to content

Commit

Permalink
Update GetDownloadCount.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shupershuff authored Jun 18, 2024
1 parent 63e79d9 commit 75a2afe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/GetDownloadCount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Fetch Release Data
id: fetch_release
Expand All @@ -31,7 +31,6 @@ jobs:
download_count=0
fi
echo "Download count: $download_count"
echo "::set-output name=download_count::${download_count}"
echo "download_count=$download_count" >> $GITHUB_OUTPUT
- name: Update JSON File
Expand All @@ -43,8 +42,12 @@ jobs:
"color": "blue"
}' > download-count.json
- name: Commit and Push Changes
env:
TOKEN: ${{ secrets.ACTIONS_PUSH_TOKEN }}
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add download-count.json
git commit -m 'Update download count'
git push
git push https://$TOKEN@github.com/shupershuff/diablo2rloader.git HEAD:main

0 comments on commit 75a2afe

Please sign in to comment.