fix: use GitHub App token for lint/i18n workflows to trigger e2e tests

Amp-Thread-ID: https://ampcode.com/threads/T-019c0c25-c0e9-71c2-ac29-b80252d9fb6f
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Alexander Brown
2026-01-29 18:33:09 -08:00
parent fc38f16543
commit be3a8d61c7
2 changed files with 17 additions and 0 deletions

View File

@@ -17,10 +17,18 @@ jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.COMFY_APP_ID }}
private-key: ${{ secrets.COMFY_APP_PRIVATE_KEY }}
- name: Checkout PR
uses: actions/checkout@v6
with:
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || github.ref }}
token: ${{ steps.app-token.outputs.token }}
- name: Setup frontend
uses: ./.github/actions/setup-frontend

View File

@@ -15,8 +15,17 @@ jobs:
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.head.repo.full_name == github.repository && startsWith(github.head_ref, 'version-bump-'))
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.COMFY_APP_ID }}
private-key: ${{ secrets.COMFY_APP_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ steps.app-token.outputs.token }}
# Setup playwright environment
- name: Setup ComfyUI Frontend