A GitHub action that generates a web feed from an Instagram accounts.
To use this action, create a new workflow in .github/workflows
and modify it as needed:
name: RSS
on:
schedule:
- cron: "0 17 * * *"
push:
jobs:
generate_web_feed:
runs-on: macOS-latest
name: Generate Web Feed
steps:
- name: Checkout
uses: actions/checkout@v3
- name: WebFeed
id: web_feed
uses: ognis1205/[email protected]
with:
username: ${{ secrets.INSTAGRAM_USERNAME }}
password: ${{ secrets.INSTAGRAM_PASSWORD }}
- name: Commit files
if: ${{ success() && steps.web_feed.outputs.STATUS == 'success' }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add instagram.json
git commit -am "Updated instagram.json"
git push