Skip to content

🖋 → 🐘 POSSE articles to Mastodon #10824

🖋 → 🐘 POSSE articles to Mastodon

🖋 → 🐘 POSSE articles to Mastodon #10824

name: '🖋 → 🐘 POSSE articles to Mastodon'
on:
schedule:
# https://crontab.guru/#13/37_*_*_*_*
- cron: '13/37 * * * *'
workflow_dispatch:
env:
TYPE: 'articles'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
Mastodon:
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: POSSE ${{ env.TYPE }} to Mastodon 🦣
uses: nhoizey/github-action-jsonfeed-to-mastodon@v1
with:
feedUrl: 'https://nicolas-hoizey.com/feeds/mastodon/${{ env.TYPE }}.json'
mastodonInstance: ${{ secrets.MASTODON_INSTANCE }}
mastodonToken: ${{ secrets.MASTODON_ACCESS_TOKEN }}
cacheFile: 'posse-mastodon-${{ env.TYPE }}.json'
cacheTimestampFile: 'posse-mastodon-${{ env.TYPE }}-timestamp.json'
globalDelayToots: 10
- name: Pull any changes from Git 📥
run: git pull
- name: Commit and push 📤
uses: stefanzweifel/git-auto-commit-action@v5