-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (32 loc) · 1.06 KB
/
posse-mastodon-articles.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
39
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