Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
use bot token
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Oct 24, 2024
1 parent acde7a5 commit 975c8db
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,19 @@ jobs:
steps:
- name: Get Tag Name
run: echo "VERSION=$(echo ${{ github.ref }} | tr -d 'refs/tags/v')" >> $GITHUB_ENV
- uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
- name: Submit to Winget
uses: vedantmgoyal9/winget-releaser@main
with:
identifier: Mihomo-Party.Mihomo-Party
version: ${{env.VERSION}}
release-tag: v${{env.VERSION}}
installers-regex: 'mihomo-party-windows-.*setup\.exe$'
token: ${{ secrets.POMPURIN404_TOKEN }}
token: ${{ steps.generate-token.outputs.token }}

homebrew:
if: startsWith(github.ref, 'refs/tags/v')
Expand All @@ -553,11 +558,16 @@ jobs:
steps:
- name: Set up Git
run: |
git config --global user.email pompurin404@mihomo.party
git config --global user.name pompurin404
git config --global user.email mihomo-party-bot[bot]@users.noreply.github.com
git config --global user.name mihomo-party-bot[bot]
- uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
- name: Update Homebrew cask
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.POMPURIN404_TOKEN }}
HOMEBREW_GITHUB_API_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
brew tap mihomo-party-org/mihomo-party
brew update
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Auto Close Issue
uses: mihomo-party-org/auto-close-isssues@main
uses: mihomo-party-org/auto-close-issue@main
with:
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 }}
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}

0 comments on commit 975c8db

Please sign in to comment.