From 5adb288276518cb8e12c483307677e009b2fedcd Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Mon, 7 Aug 2023 19:44:38 +0900 Subject: [PATCH] ci: fix deployment action --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1ed4a390..db863080 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,7 +32,7 @@ jobs: fi elif ${{ github.event_name == 'pull_request_target' }}; then echo "branch=pull/${{ github.event.number }}/merge" >> "$GITHUB_OUTPUT" - if ${{ github.event.head.repo.html_url != github.repository.html_url }}; then + if ${{ github.event.pull_request.head.repo.html_url != github.repository.html_url }}; then echo "environment=External PR" >> "$GITHUB_OUTPUT" else echo "environment=Preview" >> "$GITHUB_OUTPUT"