Skip to content

Commit

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

on:
push:
Expand All @@ -23,8 +23,8 @@ jobs:
# Step 2: Install dependencies
- name: Install dependencies
run: |
pip install --upgrade pip
cd $GITHUB_WORKSPACE/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 @@ -36,7 +36,7 @@ jobs:
# Step 4: Execute the project script
- name: Run app.py
run: |
cd $GITHUB_WORKSPACE/api # Ensure we are still in the 'api' directory
cd $GITHUB_WORKSPACE/api
python app.py
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 comments on commit c154629

Please sign in to comment.