Skip to content

Commit

Permalink
fix the certificate name
Browse files Browse the repository at this point in the history
  • Loading branch information
srini047 authored Oct 6, 2023
1 parent 6be2341 commit 0c5a281
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/generate_certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
pr_name: ${{ github.event.pull_request.title }}
org_profile_url: ${{ fromJson(steps.webhook.outputs.output).data.html_url }}
repo_name: ${{ github.event.repository.name }}
contributor_name: ${{ github.actor }}
contributor_name: ${{ github.event.pull_request.user.login }}
issue_title: ${{ github.event.pull_request.head.ref }}
issue_number: ${{ github.event.pull_request.number }}
date: ${{ github.event.pull_request.created_at }}
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
run: |
RESPONSE=$(curl -s --location \
--request POST "https://api.imgbb.com/1/upload?key=$API" \
--form "image=@${{ github.actor }}.png")
--form "image=@${{ github.event.pull_request.user.login }}.png")
URL=$(echo $RESPONSE | sed 's/^.*"display_url":"//' | sed 's/",.*$//')
echo "URL=$(echo $URL | sed 's#\\/#/#g')" >> $GITHUB_OUTPUT
# echo $URL
Expand All @@ -85,7 +85,7 @@ jobs:
Here is the contribution certificate you can share on social media so everybody knows how awesome you are :call_me_hand::earth_americas:.
Spread the #opensource love :green_heart:
![${{ github.actor }}.png](${{ steps.imgbb.outputs.URL }})" > output/results.md
![${{ github.event.pull_request.user.login }}.png](${{ steps.imgbb.outputs.URL }})" > output/results.md
- uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit 0c5a281

Please sign in to comment.