Skip to content

Commit 4dc11bb

Browse files
committed
A Github action and a config (but will it work?)
1 parent baea35f commit 4dc11bb

3 files changed

Lines changed: 67 additions & 0 deletions

File tree

.github/workflows/generate_csv.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Generate CSV and commit
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-commit:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout this repository
17+
uses: actions/checkout@main
18+
19+
- name: Generate CSV
20+
run: |
21+
git clone https://github.com/ualberta-rcg/youtube_to_csv.git
22+
pip install youtube_to_csv/.
23+
youtube_to_csv config.yml > youtube.csv
24+
25+
- name: Commit and push changes
26+
run: |
27+
git config --global user.name "github-actions[bot]"
28+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
29+
git add youtube.csv
30+
git diff-index --quiet HEAD || git commit -m "chore: auto-update file [skip ci]"
31+
git push

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This creates as CSV file to export to TeSS software, using the
2+
[youtube_to_csv](https://github.com/ualberta-rcg/youtube_to_csv) python code
3+
and a Github action (I hope).

config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
url: https://www.youtube.com/feeds/videos.xml?channel_id=UCERhES8Kh7n29qtkoEl9MSQ
2+
defaults:
3+
licence: CC-BY-NC-SA-4.0
4+
status: active
5+
types: 'video;tutorial;'
6+
author: Jiarui Li
7+
competency: beginner
8+
prerequisites: No previous skills or experience required
9+
keywords: 'hpc;'
10+
11+
video_values:
12+
'Register an account at DRAC':
13+
keywords: 'Accounts;Introduction;'
14+
'Introduction To Digital Research Alliance of Canada (DRAC)':
15+
keywords: 'Introduction;'
16+
'Job Performance Evaluation':
17+
keywords: 'HPC;Slurm;Command line;CLI;Bash;Unix shell;scripting;'
18+
'Submit The Batch Job':
19+
keywords: 'HPC;Slurm;Command line;CLI;Bash;Unix shell;scripting;'
20+
'Software Module On DRAC HPC Clusters':
21+
keywords: 'HPC;CVMFS;Software;'
22+
'Transfer Data With FileZilla':
23+
keywords: 'HPC;Data transfer;'
24+
'Transfer Data With rsync':
25+
keywords: 'HPC;Data transfer;'
26+
'Transfer Data With Globus':
27+
keywords: 'HPC;Data transfer;'
28+
'Access Arbutus Virtual Machine':
29+
keywords: 'Cloud;VM;Virtual machines;'
30+
'Introduction to cloud at Digital Research Alliance of Canada':
31+
keywords: 'Cloud;VM;Virtual machines;'
32+
'Logging into a remote server via SSH':
33+
keywords: 'HPC;SSH;Command line;CLI;Bash;Unix shell;'

0 commit comments

Comments
 (0)