-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 1010 Bytes
/
sync.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
name: Sync feeds via revett/miniflux-sync
on: [push]
jobs:
Run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download and read version
id: get_version
run: |
VERSION=$(curl -s https://raw.githubusercontent.com/revett/miniflux-sync/main/VERSION)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Download and extract latest release
run: |
curl -L https://github.com/revett/miniflux-sync/releases/download/${{ env.VERSION }}/miniflux-sync_Linux_x86_64.tar.gz | tar -xz
- name: Run CLI with arguments
env:
MINIFLUX_SYNC_ENDPOINT: ${{ secrets.MINIFLUX_SYNC_ENDPOINT }}
MINIFLUX_SYNC_API_KEY: ${{ secrets.MINIFLUX_SYNC_API_KEY }}
run: |
if [ "${{ github.ref_name }}" == "main" ]; then
./miniflux-sync sync --path feeds.yml
else
./miniflux-sync sync --dry-run --path feeds.yml
fi