📸 → 🖼️ POSSE photos to Pixelfed #26
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 photos to Pixelfed' | |
on: | |
schedule: | |
# https://crontab.guru/#3/17_1/3_*_*_* | |
# At every 17th minute from 3 through 59 past every 3rd hour from 1 through 23 | |
- cron: '3/17 1/3 * * *' | |
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-jsonfeed-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: 660 # 11 hours | |
nbTootsPerItem: 1000 | |
delayTootsSameItem: 660 # 23 hours | |
instanceType: "pixelfed" | |
- name: Pull any changes from Git 📥 | |
run: git pull | |
- name: Commit and push 📤 | |
uses: stefanzweifel/git-auto-commit-action@v5 |