forked from ScottLogic/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1022 Bytes
/
generate-related.yaml
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
name: Generate Read More related
on:
push:
branches:
- gh-pages
pull_request:
branches:
- gh-pages
jobs:
generate-read-more:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.13.x
cache: npm
- run: npm install
- run: npm run compute-embeddings --OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
- run: npm run generate-related
- name: Create Pull Request if Needed
uses: peter-evans/create-pull-request@v4
with:
title: Auto Generated Read More Links
branch-suffix: timestamp
commit-message: Auto Compressed Images
base:
branch: gh-pages
body: |
This PR was automatically generated by a GitHub Action.
It contains the auto generated related links for all posts.
add-paths: |
_data/related.yml