From acde7a55c4a7b3acbce98d4bde179ccb30f1b8d2 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Wed, 23 Oct 2024 20:56:29 +0800 Subject: [PATCH] use auto-close-issues action --- .github/workflows/issues.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index 6e934c4..60e36bc 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -8,18 +8,12 @@ jobs: close: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Auto Close Issue + uses: mihomo-party-org/auto-close-isssues@main with: - repository: mihomo-party-org/auto-close-isssues - - - uses: actions/setup-go@v5 - with: - go-version: '1.23' - - env: - ISSUE_TITLE: ${{ github.event.issue.title }} - ISSUE_BODY: ${{ github.event.issue.body }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - GITHUB_TOKEN: ${{ secrets.POMPURIN404_TOKEN }} - API_URL: ${{ secrets.OPENAI_BASE_URL }} - API_KEY: ${{ secrets.OPENAI_API_KEY }} - run: go run main.go + url: ${{ secrets.OPENAI_BASE_URL }} + key: ${{ secrets.OPENAI_API_KEY }} + prompt: ${{ vars.OPENAI_SYSTEM_PROMPT }} + app-id: ${{ secrets.BOT_APP_ID }} + installation-id: ${{ secrets.BOT_INSTALLATION_ID }} + private-key: ${{ secrets.BOT_PRIVATE_KEY }}