Skip to content

fix action

fix action #23

Workflow file for this run

name: 'Code Style Checker'
description: 'Check code style for different programming languages.'
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install jq
pip3 install requests
- name: Run the script
env:
INPUT_URL: 'https://openrouter.ai/api/v1/chat/completions'
INPUT_API_KEY: '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'
INPUT_MODEL: 'deepseek/deepseek-chat:free'
INPUT_REPO_PATH: ${{ github.workspace }}
INPUT_STYLE: 'rust' # 根据需要修改
INPUT_LANGUAGE: 'rust' # 根据需要修改
run: bash ./checker.sh