From 619edd9d0f64a4349d97330f115397c0f20dbb4b Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Mon, 7 Aug 2023 21:18:18 +0900 Subject: [PATCH] ci: fix deployment action --- .github/workflows/deploy.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d2b13aa1..5197c342 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,17 +25,10 @@ jobs: run: | if ${{ github.event_name == 'push' }}; then echo "branch=${{ github.ref_name }}" >> "$GITHUB_OUTPUT" - if ${{ github.ref_name == 'main' }}; then - echo "environment=Production" >> "$GITHUB_OUTPUT" - else - echo "environment=Preview" >> "$GITHUB_OUTPUT" - fi elif ${{ github.event_name == 'pull_request_target' }}; then echo "branch=pull/${{ github.event.number }}/merge" >> "$GITHUB_OUTPUT" if ${{ github.event.pull_request.head.repo.html_url != github.event.repository.html_url }}; then echo "environment=External PR" >> "$GITHUB_OUTPUT" - else - echo "environment=Preview" >> "$GITHUB_OUTPUT" fi else exit 1