Skip to content

Commit 7f68ab4

Browse files
authored
Merge branch 'main' into version-docs
2 parents 63e0e64 + 3e3638c commit 7f68ab4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/preview-build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ permissions:
3737
jobs:
3838
build:
3939
concurrency:
40-
group: ${{ github.workflow }}-${{ github.ref }}
40+
group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref }}
4141
cancel-in-progress: ${{ github.event_name == 'pull_request_target' }}
4242
runs-on: ubuntu-latest
4343
steps:
@@ -53,6 +53,7 @@ jobs:
5353
if: github.event_name == 'push' || steps.check-files.outputs.any_changed == 'true'
5454
uses: actions/checkout@v4
5555
with:
56+
repository: '${{ github.event.pull_request.head.repo.full_name || github.repository }}'
5657
ref: ${{ github.event.pull_request.head.sha || github.ref }}
5758
persist-credentials: false
5859

@@ -62,7 +63,7 @@ jobs:
6263
id: deployment
6364
env:
6465
PR_NUMBER: ${{ github.event.pull_request.number }}
65-
REF: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.ref || github.ref_name }}
66+
REF: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref_name }}
6667
with:
6768
result-encoding: string
6869
script: |

0 commit comments

Comments
 (0)