-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.17 KB
/
main.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Main Workflow
on:
push:
branches:
- main
schedule:
- cron: '0 * * * *'
jobs:
main:
runs-on: ubuntu-latest
env:
working-directory: ./
strategy:
matrix:
node-version: [16.13.0]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/checkout@v4
- name: Environment Preparation
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Dependencies Installation
working-directory: ./
run: |
npm install
- name: Create env parameters
working-directory: ./
run: |
touch .env
echo BLOCKCHAIN_CONNECTION_STRING=${{ secrets.BLOCKCHAIN_CONNECTION_STRING }} >> .env
echo PINATA_JWT=${{ secrets.PINATA_JWT }} >> .env
- name: Build JSONs
working-directory: ./
run: |
npm run start
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: King Julian
author_email: [email protected]
message: "Build JSONs"
add: "./src/output/output.json"
env:
GITHUB_TOKEN: ${{ secrets.COMMIT_AUTH_TOKEN }}