-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: youtube to anchor workflow (#805)
Co-authored-by: V Thulisile Sibanda <66913810+thulieblack@users.noreply.github.com>%0ACo-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
- Loading branch information
1 parent
018fb6e
commit 3562cd6
Showing
2 changed files
with
125 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 'Upload Episode from YouTube To Spotify for Podcasters' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
video_id: | ||
description: 'Enter YouTube video ID to upload on Spotify for Podcasters.' | ||
required: true | ||
|
||
jobs: | ||
upload_episode: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Create episode.json file | ||
run: | | ||
# Get the video ID from the workflow_dispatch input. | ||
video_id="${{ github.event.inputs.video_id }}" | ||
# Create episode.json content with the video ID | ||
json_content="{\"id\": \"${video_id}\"}" | ||
# Write the content to episode.json in the workspace directory | ||
echo "${json_content}" > episode.json | ||
# Verify the content was written successfully | ||
cat episode.json | ||
- name: Upload Episode from YouTube To Anchor.Fm | ||
uses: Schrodinger-Hat/youtube-to-anchorfm@99a4a5409262b356a1bb54e6756d230ee97d3407 #commit related to https://github.com/Schrodinger-Hat/youtube-to-anchorfm/commit/99a4a5409262b356a1bb54e6756d230ee97d3407 || The latest commit which is of Oct 22, 2023 | ||
env: | ||
ANCHOR_EMAIL: ${{ secrets.ANCHOR_EMAIL }} | ||
ANCHOR_PASSWORD: ${{ secrets.ANCHOR_PASSWORD }} | ||
EPISODE_PATH: /github/workspace | ||
URL_IN_DESCRIPTION: true | ||
LOAD_THUMBNAIL: true | ||
POSTPROCESSOR_ARGS: 'ffmpeg:-ac 1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters