Skip to content

Get Debates

Get Debates #3

Workflow file for this run

name: Get Debates
on:
workflow_dispatch:
jobs:
process-debates:
defaults:
run:
shell: bash -leo pipefail {0}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@v1
name: install deps
with:
micromamba-version: '1.3.1-0'
environment-file: environment-simple.yml
init-shell: >-
bash
cache-environment: true
post-cleanup: 'all'
- name: Setup Rclone
uses: AnimMouse/setup-rclone@v1
with:
rclone_config: ${{ secrets.RCLONE_CONFIG }}
- name: Extract gcloud config from rclone config
run: echo "${{ secrets.RCLONE_CONFIG }}" | python parse_rclone_conf.py > gcloud.json
- name: Process Debates
env:
CLIENT_SECRETS_FILE: gcloud.json
run: python process_debates.py public/debates --skip-transcription
- name: Commit and Push Changes
uses: EndBug/add-and-commit@v7
with:
message: 'Update debates data'
add: 'public/debates/'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Refresh Rclone Config
uses: AnimMouse/setup-rclone/update-config@v1
with:
rclone_config_secret_name: RCLONE_CONFIG
token: ${{ secrets.GITHUB_TOKEN }}