From e35507484566e100eefda1f6758534d929547521 Mon Sep 17 00:00:00 2001 From: Tharindu Jayasanka Date: Mon, 2 Oct 2023 17:06:02 +0530 Subject: [PATCH] fix: hotfix on preview.yml --- .github/workflows/preview.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 5c414d7..0b36188 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -4,9 +4,9 @@ on: pull_request: types: - opened - push: - branches: - - '*' + - synchronize + - reopened + - edited jobs: build: @@ -41,11 +41,9 @@ jobs: # Extract the URLs from the JSON output using jq DEPLOY_URL=$(echo "$DEPLOY_OUTPUT" | jq -r '.deploy_url') - LOGS_URL=$(echo "$DEPLOY_OUTPUT" | jq -r '.logs') # Set outputs for later use - echo "::set-output name=deploy_url::${DEPLOY_URL}" - echo "::set-output name=logs_url::${LOGS_URL}" + echo "{deploy_url}=${DEPLOY_URL}" >> $GITHUB_OUTPUT env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_PREVIEW_SITE_ID }}