generated from nhoizey/pack11ty
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 1.14 KB
/
posse-pixelfed-photo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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