Skip to content

personal-videos-bot #124

personal-videos-bot

personal-videos-bot #124

on:
schedule:
- cron: '0 0 * * *'
name: personal-videos-bot
jobs:
personal-videos-bot:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET }}
yt_app_bucket: ${{ secrets.AWS_S3 }}
s3ytfeedapp: ${{ secrets.AWS_S3 }}
YOUTUBE_KEY: ${{ secrets.YOUTUBE_KEY }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Render and commit Quarto
run: |
Rscript -e 'rmarkdown::render("etl_pipeline/ETL-Pipeline.qmd")'
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add etl_pipeline/ETL-Pipeline.html
git commit -m '[Bot] Render and commit Quarto' || echo "No changes to commit"
git push origin || echo "No changes to commit"