update system prompt for readme review in workflow

This commit is contained in:
Lifailon
2026-02-06 00:10:53 +03:00
parent 54f080a52b
commit c44e2a658c
3 changed files with 7 additions and 14 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ on:
Version:
description: 'Version for Go'
required: false
default: ''
default: '1.25'
Modules:
description: 'Update dependencies in modules'
default: false
@@ -109,7 +109,7 @@ jobs:
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "actions: update dependencies"
commit-message: "update go version and package dependencies"
branch: "fix/${{ env.APP_VERSION }}-update"
title: "Updated dependencies"
body: "Updated go version and modules in `go.mod` and `go.sum` files."
@@ -194,7 +194,7 @@ jobs:
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "actions: fix lint in main.go"
commit-message: "autofix linters using golangci"
branch: "fix/${{ env.APP_VERSION }}-lint"
title: "Fixed linters"
body: "Automatically fixing linters with golangci from GitHub Actions."
+4 -4
View File
@@ -53,9 +53,9 @@ jobs:
max-tokens: 8192
system-prompt: |
You are a professional translator.
We need to analyze the submitted file and check its spelling in ${{ github.event.inputs.Language }}.
Do not alter the content; you must return the entire file with corrections.
Maintain the original Markdown formatting and links.
You must analyze the provided text from the repository's README file and check for spelling in the ${{ github.event.inputs.Language }} language and errors in the text.
Do not modify the content, you must return the entire text with corrections and without unnecessary comments.
Preserve the original Markdown formatting and links.
prompt: ${{ steps.read_file.outputs.readme }}
- name: Write README
@@ -80,7 +80,7 @@ jobs:
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "actions: review readme file"
commit-message: "review readme file using ai"
branch: "docs/readme-review"
title: "README review"
body: "AI-powered README file review"
-7
View File
@@ -50,13 +50,6 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch
# - name: Create GitHub release
# uses: ncipollo/release-action@v1.20.0
# with:
# tag: ${{ steps.tag.outputs.new_tag }}
# name: ${{ steps.tag.outputs.new_tag }}
# body: ${{ steps.tag.outputs.changelog }}
- name: Go release publish
if: ${{ github.event_name == 'push' }}
uses: goreleaser/goreleaser-action@v6