File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
.github/actions/discord-message Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,8 @@ const formatBody = (input) => {
28
28
29
29
async function getReleaseBody ( name , version ) {
30
30
const tag = `${ name } @${ version } ` ;
31
- const result = await octokit . rest . repos . getReleaseByTag ( {
32
- owner : 'urql-graphql' ,
33
- repo : 'urql' ,
34
- tag,
35
- } ) ;
31
+ const [ owner , repo ] = process . env . GITHUB_REPOSITORY . split ( '/' ) ;
32
+ const result = await octokit . rest . repos . getReleaseByTag ( { owner, repo, tag } ) ;
36
33
37
34
const release = result . status === 200 ? result . data : undefined ;
38
35
if ( ! release || ! release . body ) return ;
@@ -75,7 +72,8 @@ async function main() {
75
72
} ) ;
76
73
77
74
if ( ! response . ok ) {
78
- console . log ( 'Something went wrong while sending the discord webhook.' ) ;
75
+ console . error ( 'Something went wrong while sending the discord webhook.' , response . status ) ;
76
+ console . error ( await response . text ( ) ) ;
79
77
return ;
80
78
}
81
79
You can’t perform that action at this time.
0 commit comments