Skip to content

Update to node 20/22 #23

Update to node 20/22

Update to node 20/22 #23

Workflow file for this run

name: Create .feedback.txt files for content using chatgpt
on:
push:
branches:
- main
jobs:
add-feedback:
name: Add feedback files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
#checkout the update-translations branch if it exists and rebase it against main
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: 'npm'
- name: Cache .aicache
uses: actions/cache@v3
with:
path: .aicache
key: openai-cache
- run: npm ci
- name: npm run feedback
env:
VITE_OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: npm run feedback
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
add-paths: src/content/*/_f_*.feedback.txt, src/content/*.alternate.md
commit-message: Add/update feebdack files
title: Update feedback files
body: Update feedback files
branch: update-feedback-files
delete-branch: true
labels: github-action