File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 40
40
node-version : 20
41
41
cache : npm
42
42
- name : " Cache Node.js modules"
43
- uses : actions/cache@v2
43
+ uses : actions/cache@v4
44
44
with :
45
45
path : ~/.npm
46
46
key : ${{ runner.OS }}-node-${{ hashFiles('**/package.json') }}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const publishBlueSky = async (post: string): Promise<void> => {
30
30
}
31
31
} )
32
32
33
- logger . info ( `[${ colors . green ( '✔' ) } ] BlueSky post published: ${ JSON . stringify ( res ) } ` )
33
+ logger . info ( `[${ colors . green ( '✔' ) } ] BlueSky post published: ${ res ?. data ?. uri } ` )
34
34
} catch ( error ) {
35
35
if ( error instanceof Error ) {
36
36
logger . warn ( `[${ colors . red ( '❌' ) } ] BlueSky post failed: ${ colors . red ( error . message ) } ` )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const publishMastodon = async (status: string): Promise<void> => {
16
16
if ( process . env . PUBLISHING_MODE ) {
17
17
try {
18
18
const res = await masto . v1 . statuses . create ( { status } )
19
- logger . info ( `[${ colors . green ( '✔' ) } ] Mastodon post published: ${ res . url } ` )
19
+ logger . info ( `[${ colors . green ( '✔' ) } ] Mastodon post published: ${ res ? .url } ` )
20
20
} catch ( error ) {
21
21
if ( error instanceof Error ) {
22
22
logger . warn ( `[${ colors . red ( '❌' ) } ] Mastodon post failed: ${ colors . red ( error . message ) } ` )
You can’t perform that action at this time.
0 commit comments