Skip to content

Commit 575f4a5

Browse files
committed
Fix env vars
1 parent 9522f4c commit 575f4a5

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

.github/workflows/deploy-readme.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ jobs:
2525
run: yarn
2626

2727
- name: Generate readme
28-
env:
29-
HYGRAPH_URL: ${{ env.HYGRAPH_URL }}
30-
run: yarn workspace @teimurjan/profile-readme generate-readme
28+
run: env HYGRAPH_URL=${{ env.HYGRAPH_URL }} yarn workspace @teimurjan/profile-readme generate-readme
3129

3230
- name: Clone teimurjan repo
3331
run: |

.github/workflows/deploy.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,13 @@ jobs:
3030
run: yarn
3131

3232
- name: Generate opengraph
33-
env:
34-
NEXT_PUBLIC_HYGRAPH_URL: ${{ env.HYGRAPH_URL }}
35-
run: yarn workspace @teimurjan/website generate-opengraph:ci
33+
run: env NEXT_PUBLIC_HYGRAPH_URL=${{ env.HYGRAPH_URL }} yarn workspace @teimurjan/website generate-opengraph:ci
3634

3735
- name: Generate resume
38-
env:
39-
NEXT_PUBLIC_HYGRAPH_URL: ${{ env.HYGRAPH_URL }}
40-
run: yarn workspace @teimurjan/website generate-resume
36+
run: env NEXT_PUBLIC_HYGRAPH_URL=${{ env.HYGRAPH_URL }} yarn workspace @teimurjan/website generate-resume
4137

4238
- name: Build
43-
env:
44-
NEXT_PUBLIC_HYGRAPH_URL: ${{ env.HYGRAPH_URL }}
45-
run: yarn workspace @teimurjan/website build
39+
run: env NEXT_PUBLIC_HYGRAPH_URL=${{ env.HYGRAPH_URL }} yarn workspace @teimurjan/website build
4640

4741
- name: Deploy
4842
uses: peaceiris/actions-gh-pages@v3
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
HYGRAPH_URL=

workspaces/profile-readme/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.md

workspaces/resume-generator/app/api/generate/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function POST(request: NextRequest) {
2424
Given the following job description: "${parsed.data.jobDescription}"
2525
and the following JSON data for my resume: ${JSON.stringify(parsed.data.resume)},
2626
update the experience descriptions, skills & bios in the JSON data to match the job description without structure change.
27-
Also create a concise, unique and unusual cover letter written in simple words using a bit of emojis.
27+
Also create a concise, unusual cover letter with a touching hook in the beginning written in simple words using a bit of emojis.
2828
Do not include anything except JSON object with keys "resume" and "coverletter" in the response.
2929
`
3030
const completion = await client.chat.completions.create({

0 commit comments

Comments
 (0)