mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 08:30:06 +00:00
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:
8
.github/workflows/ci-lint-format.yaml
vendored
8
.github/workflows/ci-lint-format.yaml
vendored
@@ -17,10 +17,18 @@ jobs:
|
|||||||
lint-and-format:
|
lint-and-format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Checkout PR
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || github.ref }}
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || github.ref }}
|
||||||
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
|
|
||||||
- name: Setup frontend
|
- name: Setup frontend
|
||||||
uses: ./.github/actions/setup-frontend
|
uses: ./.github/actions/setup-frontend
|
||||||
|
|||||||
9
.github/workflows/i18n-update-core.yaml
vendored
9
.github/workflows/i18n-update-core.yaml
vendored
@@ -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-'))
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
|
|
||||||
# Setup playwright environment
|
# Setup playwright environment
|
||||||
- name: Setup ComfyUI Frontend
|
- name: Setup ComfyUI Frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user