-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.03 KB
/
node.js.yml
File metadata and controls
41 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Run index.js with Yarn & Chrome
on:
repository_dispatch:
types: [generate-cv]
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js and Yarn
uses: actions/setup-node@v3
with:
node-version: 22
cache: 'yarn'
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Google Chrome
run: |
sudo apt update
sudo apt install -y google-chrome-stable
- name: Run index.js
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_PORT: ${{ secrets.SMTP_PORT }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
RECIPIENT_EMAIL: ${{ secrets.RECIPIENT_EMAIL }}
MARKDOWN_FILE_URL: ${{ secrets.MARKDOWN_FILE_URL }}
run: yarn start