mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
chore: adjust import with wrapper
This commit is contained in:
parent
819801be2c
commit
0b6cbdb542
7
.github/workflows/social.yml
vendored
7
.github/workflows/social.yml
vendored
|
@ -1,6 +1,4 @@
|
||||||
# <a rel="me" href="https://social.ohmyposh.dev/@releasebot">Mastodon</a>
|
name: Social
|
||||||
|
|
||||||
name: Mastodon
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
@ -28,8 +26,7 @@ jobs:
|
||||||
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
|
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
import pkg from '@atproto/api';
|
const { BskyAgent } = require('@atproto/api')
|
||||||
const { BskyAgent } = pkg;
|
|
||||||
|
|
||||||
const agent = new BskyAgent({ service: 'https://bsky.social' })
|
const agent = new BskyAgent({ service: 'https://bsky.social' })
|
||||||
await agent.login({identifier: '${{ secrets.BLUESKY_IDENTIFIER }}', password: '${{ secrets.BLUESKY_PASSWORD }}'})
|
await agent.login({identifier: '${{ secrets.BLUESKY_IDENTIFIER }}', password: '${{ secrets.BLUESKY_PASSWORD }}'})
|
||||||
|
|
Loading…
Reference in a new issue