Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweetdevil144 authored Sep 23, 2023
1 parent 246a68c commit 5bfef19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Project with Secret
name: Youtube Shorts Project

on:
push:
Expand All @@ -23,7 +23,8 @@ jobs:
# Step 2: Install dependencies
- name: Install dependencies
run: |
cd api
pip install --upgrade pip
cd $GITHUB_WORKSPACE/api
pip install -r requirements.txt
# Step 3: Set up the environment with OPENAI_API_KEY
Expand All @@ -35,7 +36,7 @@ jobs:
# Step 4: Execute the project script
- name: Run app.py
run: |
cd api
cd $GITHUB_WORKSPACE/api # Ensure we are still in the 'api' directory
python app.py
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 comments on commit 5bfef19

Please sign in to comment.