mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-24 06:25:48 +00:00
chore(root): update GA with pull_request_target
This commit is contained in:
parent
2e4ae1f417
commit
cc7cab4555
8
.github/workflows/publish-dashboard.yaml
vendored
8
.github/workflows/publish-dashboard.yaml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
- packages/dashboard/**
|
- packages/dashboard/**
|
||||||
- package.json
|
- package.json
|
||||||
- pnpm-lock.yaml
|
- pnpm-lock.yaml
|
||||||
pull_request:
|
pull_request_target:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/publish-dashboard.yaml
|
- .github/workflows/publish-dashboard.yaml
|
||||||
@ -30,6 +30,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
|
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: pnpm
|
- name: pnpm
|
||||||
uses: pnpm/action-setup@v3.0.0
|
uses: pnpm/action-setup@v3.0.0
|
||||||
@ -58,7 +62,7 @@ jobs:
|
|||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
command: pages deploy ./packages/dashboard/build --project-name=pockethost --branch=${{ github.head_ref || github.ref_name }}
|
command: pages deploy ./packages/dashboard/build --project-name=pockethost --branch=${{ github.event.pull_request.head.ref || github.ref_name }}
|
||||||
|
|
||||||
- name: Find related pull request
|
- name: Find related pull request
|
||||||
id: find_pr
|
id: find_pr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user