mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-15 19:22:31 +08:00
fix token
This commit is contained in:
parent
d06f70ccb9
commit
55cc48d9d7
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
@ -536,11 +536,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Get Tag Name
|
- name: Get Tag Name
|
||||||
run: echo "VERSION=$(echo ${{ github.ref }} | tr -d 'refs/tags/v')" >> $GITHUB_ENV
|
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
|
- name: Submit to Winget
|
||||||
uses: vedantmgoyal9/winget-releaser@main
|
uses: vedantmgoyal9/winget-releaser@main
|
||||||
with:
|
with:
|
||||||
|
@ -548,7 +543,7 @@ jobs:
|
||||||
version: ${{env.VERSION}}
|
version: ${{env.VERSION}}
|
||||||
release-tag: v${{env.VERSION}}
|
release-tag: v${{env.VERSION}}
|
||||||
installers-regex: 'mihomo-party-windows-.*setup\.exe$'
|
installers-regex: 'mihomo-party-windows-.*setup\.exe$'
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
token: ${{ secrets.POMPURIN404_TOKEN }}
|
||||||
|
|
||||||
homebrew:
|
homebrew:
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
@ -560,14 +555,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email mihomo-party-bot[bot]@users.noreply.github.com
|
git config --global user.email mihomo-party-bot[bot]@users.noreply.github.com
|
||||||
git config --global user.name mihomo-party-bot[bot]
|
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
|
- name: Update Homebrew cask
|
||||||
env:
|
env:
|
||||||
HOMEBREW_GITHUB_API_TOKEN: ${{ steps.generate-token.outputs.token }}
|
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.POMPURIN404_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
brew tap mihomo-party-org/mihomo-party
|
brew tap mihomo-party-org/mihomo-party
|
||||||
brew update
|
brew update
|
||||||
|
|
Loading…
Reference in New Issue
Block a user