Skip to content

sub more jsbkk1 talks #717

sub more jsbkk1 talks

sub more jsbkk1 talks #717

Workflow file for this run

name: YouTube
on:
push:
branches:
- main
paths:
- 'data/**'
- 'src/**'
- 'bin/**'
- '.github/workflows/sync.yml'
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
sync:
name: Synchronize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up
uses: ./.github/actions/setup
- name: Write secret file
run: |
mkdir -p .data
echo "$GOOGLE_CLIENT_JSON" > .data/google_client_secret.json
env:
GOOGLE_CLIENT_JSON: ${{ secrets.GOOGLE_CLIENT_JSON }}
- name: Synchronize
run: bin/sync --confirm
env:
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
if: always()
with:
commit_message: Update state file
commit_user_name: 'creatorsgarten[bot]'
commit_user_email: 'creatorsgarten[bot]@users.noreply.github.com'
- name: Dump the new state
if: always()
run: cat youtube-sync.yml
permissions:
contents: write