forked from audacity/audacity
-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (31 loc) · 1.14 KB
/
ci_learn_update_paylists.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Collect playlists for Home->Learn page
on:
workflow_dispatch:
inputs:
mode:
description: 'Mode: stable, testing'
required: true
default: 'testing'
defaults:
run:
shell: bash
jobs:
update-get-started-playlist:
runs-on: ubuntu-20.04
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Update info about the get started playlist in s3
run: |
S3_URL="s3://extensions.musescore.org/audacity/4.0/learn/started_playlist.json"
if [ ${{ github.event.inputs.mode }} == "testing" ]; then
S3_URL="s3://extensions.musescore.org/audacity/4.0/learn/started_playlist.test.json"
fi
sudo bash ./au4/buildscripts/ci/learn/make_playlists_info_file.sh \
--youtube_api_key ${{ secrets.YOUTUBE_API_KEY }} \
--youtube_playlist_id 'PLt__f9D3T90yZiTOE1QOAF2Uc1MPAK_fv'
sudo bash ./au4/buildscripts/ci/learn/push_file_to_s3.sh \
--s3_key ${{ secrets.S3_KEY }} \
--s3_secret ${{ secrets.S3_SECRET }} \
--s3_url ${S3_URL} \
--file_name "playlist.json"