Skip to content

Commit

Permalink
Update avatar-update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalguy99 authored Sep 14, 2024
1 parent b12706b commit 444fac6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/avatar-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Get new Avatar URL
id: fetch_new_url
run: |
$response = Invoke-RestMethod -Uri "https://api.stackexchange.com/2.1/users/7571258?order=desc&sort=reputation&site=stackoverflow&filter=!*N1O2t9FKJv(Hwn5"
$response = Invoke-RestMethod -Uri "${{ vars.STACK_OVERFLOW_API }}"
$profile_img_url = $response.items[0].profile_image
echo "::set-output name=img_url::$profile_img_url"
-
Expand All @@ -31,6 +31,3 @@ jobs:
git config user.name "github-actions[bot]"
git commit -am "Updated avatar on README.md"
git push

0 comments on commit 444fac6

Please sign in to comment.