🖋 → 🐘 POSSE articles to Mastodon #14987
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: '🖋 → 🐘 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 |