Skip to content

Commit 48b2eb5

Browse files
committed
2 parents 9fd5055 + 09bba13 commit 48b2eb5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
node-version: 20
4141
cache: npm
4242
- name: "Cache Node.js modules"
43-
uses: actions/cache@v2
43+
uses: actions/cache@v4
4444
with:
4545
path: ~/.npm
4646
key: ${{ runner.OS }}-node-${{ hashFiles('**/package.json') }}

lib/publishBlueSky.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const publishBlueSky = async (post: string): Promise<void> => {
3030
}
3131
})
3232

33-
logger.info(`[${colors.green('✔')}] BlueSky post published: ${JSON.stringify(res)}`)
33+
logger.info(`[${colors.green('✔')}] BlueSky post published: ${res?.data?.uri}`)
3434
} catch (error) {
3535
if (error instanceof Error) {
3636
logger.warn(`[${colors.red('❌')}] BlueSky post failed: ${colors.red(error.message)}`)

lib/publishMastodon.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const publishMastodon = async (status: string): Promise<void> => {
1616
if (process.env.PUBLISHING_MODE) {
1717
try {
1818
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}`)
2020
} catch (error) {
2121
if (error instanceof Error) {
2222
logger.warn(`[${colors.red('❌')}] Mastodon post failed: ${colors.red(error.message)}`)

0 commit comments

Comments
 (0)