New: CI
This commit is contained in:
30
.gitea/workflows/gemini-review.yml
Normal file
30
.gitea/workflows/gemini-review.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Gemini Writing Review
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronized, reopened]
|
||||
|
||||
jobs:
|
||||
gemini-review:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
|
||||
- name: Run Gemini Review
|
||||
env:
|
||||
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITEA_URL: ${{ github.server_url }}
|
||||
GITHUB_REPOSITORY: ${{ github.repository }}
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
run: |
|
||||
cd scripts/gemini_review
|
||||
go run main.go
|
||||
19
.gitea/workflows/word-count.yml
Normal file
19
.gitea/workflows/word-count.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Word Count
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main", "master" ]
|
||||
pull_request:
|
||||
branches: [ "main", "master" ]
|
||||
|
||||
jobs:
|
||||
count-words:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Count words in Markdown files
|
||||
run: |
|
||||
echo "Counting words in all .md files..."
|
||||
find . -name "*.md" -not -path "*/.*" -exec wc -w {} + | sort -rn
|
||||
Reference in New Issue
Block a user