Skip to content

Commit

Permalink
Merge pull request #407 from stakwork/single-audio-video
Browse files Browse the repository at this point in the history
chore: added SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID env to jarvis
  • Loading branch information
tobi-bams authored Nov 22, 2024
2 parents 8eb0c1e + a67bed7 commit ee578b6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions second-brain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ services:
- QUESTION_AND_ANSWER_WORKFLOW_ID=$QUESTION_AND_ANSWER_WORKFLOW_ID
- AWS_S3_BUCKET_NAME=$AWS_S3_BUCKET_NAME
- GITHUB_REQUEST_TOKEN=$GITHUB_REQUEST_TOKEN
- SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID=$SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID

networks:
sphinx-swarm:
Expand Down
1 change: 1 addition & 0 deletions sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ services:
- SUPER_URL=$SUPER_URL
- AWS_S3_BUCKET_NAME=$AWS_S3_BUCKET_NAME
- GITHUB_REQUEST_TOKEN=$GITHUB_REQUEST_TOKEN
- SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID=$SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID

networks:
sphinx-swarm:
Expand Down
9 changes: 9 additions & 0 deletions src/images/jarvis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,15 @@ fn jarvis(
env.push(format!("GITHUB_REQUEST_TOKEN={}", github_request_token))
}

if let Ok(single_audio_or_video_episode_workflow_id) =
getenv("SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID")
{
env.push(format!(
"SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID={}",
single_audio_or_video_episode_workflow_id
))
}

Config {
image: Some(format!("{}:{}", img, node.version)),
hostname: Some(domain(&name)),
Expand Down
1 change: 1 addition & 0 deletions superadmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ services:
- AWS_S3_BUCKET_NAME=$AWS_S3_BUCKET_NAME
- AWS_USER_ROLE=$AWS_USER_ROLE
- GITHUB_REQUEST_TOKEN=$GITHUB_REQUEST_TOKEN
- SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID=$SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID

networks:
sphinx-swarm:
Expand Down

0 comments on commit ee578b6

Please sign in to comment.