Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Sep 6, 2024
1 parent 413a18d commit a1b92aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
shell: "pwsh"
run: |-
Invoke-WebRequest -Uri 'https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0b52aa9e99b832574a53_full_logo_blurple_RGB.png' -MaximumRedirection 1 -MaximumRetryCount 5 -RetryIntervalSec 5 -Method 'Get' -OutFile 'thumbnail.png'
continue-on-error: true
- uses: "hugoalh/send-discord-webhook-ghaction/_build@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK}}"
Expand Down Expand Up @@ -52,7 +51,7 @@ jobs:
}
],
"thumbnail": {
"url": "${{(steps.thumbnail.outcome == 'success' && 'attachment://thumbnail.png') || ''}}"
"url": "attachment://thumbnail.png"
},
"image": {
"url": "https://upload.wikimedia.org/wikipedia/commons/5/5a/A_picture_from_China_every_day_108.jpg"
Expand All @@ -64,4 +63,4 @@ jobs:
}
]
files: |-
${{(steps.thumbnail.outcome == 'success' && '*.png') || ''}}
thumbnail.png
5 changes: 2 additions & 3 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
shell: "pwsh"
run: |-
Invoke-WebRequest -Uri 'https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0b52aa9e99b832574a53_full_logo_blurple_RGB.png' -MaximumRedirection 1 -MaximumRetryCount 5 -RetryIntervalSec 5 -Method 'Get' -OutFile 'thumbnail.png'
continue-on-error: true
- uses: "hugoalh/send-discord-webhook-ghaction@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK}}"
Expand Down Expand Up @@ -52,7 +51,7 @@ jobs:
}
],
"thumbnail": {
"url": "${{(steps.thumbnail.outcome == 'success' && 'attachment://thumbnail.png') || ''}}"
"url": "attachment://thumbnail.png"
},
"image": {
"url": "https://upload.wikimedia.org/wikipedia/commons/5/5a/A_picture_from_China_every_day_108.jpg"
Expand All @@ -64,4 +63,4 @@ jobs:
}
]
files: |-
${{(steps.thumbnail.outcome == 'success' && '*.png') || ''}}
thumbnail.png

0 comments on commit a1b92aa

Please sign in to comment.