Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
digicosmos86 committed Oct 14, 2023
1 parent f6f11a2 commit e1f3436
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
- name: Set OPENAI_API_KEY environment variable
env:
OPENAI_API_SECRET: ${{ secrets.OPENAI_API_KEY }}
GOOGLE_APPLICATION_CREDENTIALS: /tmp/credentials.json
GCP_CREDENTIALS_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
run: |
echo $GCP_CREDENTIALS_JSON > /tmp/credentials.json
echo "OPENAI_API_KEY=$OPENAI_API_SECRET" >> $GITHUB_ENV
echo "GOOGLE_APPLICATION_CREDENTIALS=/tmp/credentials.json" >> $GITHUB_ENV
Expand All @@ -39,10 +40,6 @@ jobs:
submodules: recursive
fetch-depth: 0

- name: Create Credential File
run: |
echo ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} > /tmp/credentials.json
# Step 3: Install Hugo, Python 3.11 and Poetry
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
- name: Set OPENAI_API_KEY environment variable
env:
OPENAI_API_SECRET: ${{ secrets.OPENAI_API_KEY }}
GOOGLE_APPLICATION_CREDENTIALS: /tmp/credentials.json
GCP_CREDENTIALS_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
run: |
echo $GCP_CREDENTIALS_JSON > /tmp/credentials.json
echo "OPENAI_API_KEY=$OPENAI_API_SECRET" >> $GITHUB_ENV
echo "GOOGLE_APPLICATION_CREDENTIALS=/tmp/credentials.json" >> $GITHUB_ENV
Expand All @@ -29,10 +30,6 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}

- name: Create Credential File
run: |
echo ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} > /tmp/credentials.json
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit e1f3436

Please sign in to comment.