diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a90acc4..25b5487 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -501,7 +501,7 @@ jobs: pkgbuild: aur/${{ matrix.pkgname }}/PKGBUILD commit_username: pompurin404 commit_email: pompurin404@mihomo.party - ssh_private_key: ${{ secrets.PRIVATE_KEY }} + ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} commit_message: Update AUR package ssh_keyscan_types: rsa,ed25519 allow_empty_commits: false @@ -523,7 +523,7 @@ jobs: pkgbuild: aur/mihomo-party-git/PKGBUILD commit_username: pompurin404 commit_email: pompurin404@mihomo.party - ssh_private_key: ${{ secrets.PRIVATE_KEY }} + ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} commit_message: Update AUR package ssh_keyscan_types: rsa,ed25519 allow_empty_commits: false diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index 3ab510f..6e934c4 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -8,16 +8,18 @@ jobs: close: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - repository: mihomo-party-org/auto-close-isssues + - uses: actions/checkout@v4 + with: + repository: mihomo-party-org/auto-close-isssues - - uses: actions/setup-go@v5 - with: - go-version: '1.23' - - - env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} - API_URL: ${{ secrets.API_URL }} - API_KEY: ${{ secrets.API_KEY }} - run: go run main.go \ No newline at end of file + - 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