-
-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,8 +45,7 @@ jobs: | |
IMAGE_UPLOAD: ${{ secrets.IMAGE_UPLOAD }} | ||
id: upload | ||
run: | | ||
IMAGE_URL=$(curl -X POST https://freeimage.host/api/1/upload/?key=${{env.IMAGE_UPLOAD}} \ | ||
-F "[email protected]" | jq -r '.image.url') | ||
IMAGE_URL=$(curl --location 'https://freeimage.host/json' --form 'source=@"./preview.png"' --form 'type="file"' --form 'action="upload"' --form 'auth_token="6d207e02198a847aa98d0a2a901485a5"' | jq -r '.image.url') | ||
echo image_url=$IMAGE_URL >> $GITHUB_ENV | ||
shell: bash | ||
|
||
|
@@ -56,7 +55,7 @@ jobs: | |
script: | | ||
const image_url = "${{ env.image_url }}"; | ||
console.log('URL: '+image_url); | ||
const commentBody = '## Preview \n\nThank you for creating a pull request. This preview shows you how your changes will look on the different themes: \n\n ![Generated Preview](image_url) \n\n You can find more information how to contribute in the [contribution guidelines](https://github.com/PKief/vscode-material-icon-theme/blob/main/CONTRIBUTING.md).'; | ||
const commentBody = '## Preview \n\nThank you for creating a pull request. This preview shows you how your changes will look on the different themes: \n\n ![Generated Preview](' + image_url + ') \n\n You can find more information how to contribute in the [contribution guidelines](https://github.com/PKief/vscode-material-icon-theme/blob/main/CONTRIBUTING.md).'; | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
|