Skip to content

A Github action and a config (but will it work?) #1

A Github action and a config (but will it work?)

A Github action and a config (but will it work?) #1

Workflow file for this run

name: Generate CSV and commit
on:
push:
branches:
- main
jobs

Check failure on line 8 in .github/workflows/generate_csv.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/generate_csv.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
build-and-commit:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout this repository
uses: actions/checkout@main
- name: Generate CSV
run: |
git clone https://github.com/ualberta-rcg/youtube_to_csv.git
pip install youtube_to_csv/.
youtube_to_csv config.yml > youtube.csv
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add youtube.csv
git diff-index --quiet HEAD || git commit -m "chore: auto-update file [skip ci]"
git push