Skip to content

📸 → 🖼️ POSSE photos to Pixelfed #1404

📸 → 🖼️ POSSE photos to Pixelfed

📸 → 🖼️ POSSE photos to Pixelfed #1404

name: '📸 → 🖼️ POSSE photos to Pixelfed'
on:
schedule:
# https://crontab.guru/#9_7,17_*_*_*
# At minute 9 past hour 9 and 19 (GMT+2).
- cron: '9 7,17 * * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
Pixelfed:
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/checkout@v4
- name: POSSE photos to Pixelfed
uses: nhoizey/github-action-feed-to-mastodon@canary
with:
feedUrl: 'https://nicolas-hoizey.photo/feeds/pixelfed/photos.json'
mastodonInstance: ${{ secrets.PIXELFED_URL }}
mastodonToken: ${{ secrets.PIXELFED_TOKEN }}
cacheFile: 'posse-pixelfed-photo.json'
cacheTimestampFile: 'posse-pixelfed-photo-timestamp.json'
globalDelayToots: 540 # 9 hours (with a 10 hours difference in cron runs)
nbTootsPerItem: 1000
itemChoiceStrategy: "newest"
delayTootsSameItem: 129600 # 90 days
instanceType: "pixelfed"
- name: Pull any changes from Git 📥
run: git pull
- name: Commit and push 📤
uses: stefanzweifel/git-auto-commit-action@v5