diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 0639499..ff15b99 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -23,17 +23,22 @@ jobs: outputs: message: ${{ steps.composite-template.outputs.message }} steps: - - name: Source Code Checkout - uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }} - - name: Run Composite Template - id: composite-template - uses: ./ + - name: Setup LLM CLI + uses: https://gitea.jsc.idv.tw/actions/setup-${{ vars.ACTION_SETUP_LLM_CLI }} + with: + oauth: ${{ secrets.LLM_OAUTH }} + - name: Run AI Code Review + id: ai-code-review + uses: https://gitea.jsc.idv.tw/actions/ai-code-review@v${{ env.VERSION }} + with: + token: ${{ secrets.TOKEN }} + model: ${{ vars.LLM_NAME }} result: name: 3. RESULT runs-on: ubuntu needs: [build,test] env: - MESSAGE: ${{ needs.test.outputs.message }} + VERSION: ${{ needs.build.outputs.version }} steps: - - name: Show Message - run: echo "$MESSAGE" + - name: Show Version + run: echo "$VERSION" diff --git a/package.json b/package.json deleted file mode 100644 index 396a6f4..0000000 --- a/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "node-template", - "version": "1.0.0", - "description": "Gitea Node (JavaScript) action 範本", - "main": "src/index.js", - "scripts": { - "build": "ncc build src/index.js -o dist" - }, - "author": "Jeffery", - "license": "MIT" -}