Post to Mastodon #14067
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Post to Mastodon | |
on: | |
schedule: | |
- cron: "0 */1 * * *" | |
workflow_dispatch: | |
concurrency: | |
group: post | |
cancel-in-progress: false | |
jobs: | |
post: | |
name: Post to Mastodon | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json | |
- name: Install dependencies | |
uses: ./.github/workflows/actions/install-dependencies | |
- name: Post to Mastodon | |
run: npm run post | |
env: | |
MASTO_ACCESS_TOKEN: ${{ secrets.MASTO_ACCESS_TOKEN }} | |
MASTO_API_ENDPOINT: ${{ secrets.MASTO_API_ENDPOINT }} |