Skip to content

Automate read more

Automate read more #4

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

Check failure on line 32 in .github/workflows/generate-related.yaml

View workflow run for this annotation

GitHub Actions / Generate Read More related

Invalid workflow file

The workflow is not valid. .github/workflows/generate-related.yaml (Line: 32, Col: 13): A mapping was not expected
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