New feeds. #24
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: 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 |