From 545fc1ea406e18791135f574aeb93b01552788f5 Mon Sep 17 00:00:00 2001 From: Owen Lynch Date: Sat, 24 Aug 2024 20:54:33 -0700 Subject: [PATCH] attempt to understand github actions --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 504a4604..83a7efb3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -155,14 +155,14 @@ jobs: - name: Generate URL Preview id: url_preview - if: ${{ env.BRANCH_NAME != 'main' }} && (github.event_name == 'push' || github.event_name == 'pull_request') + if: env.BRANCH_NAME != 'main' && (github.event_name == 'push' || github.event_name == 'pull_request') run: | NETLIFY_PREVIEW_URL=$(jq -r '.deploy_url' deploy_output.json) echo "NETLIFY_PREVIEW_URL=$NETLIFY_PREVIEW_URL" >> "$GITHUB_OUTPUT" - name: Comment URL Preview on PR uses: mshick/add-pr-comment@v2 - if: ${{ env.BRANCH_NAME != 'main' }} && (github.event_name == 'push' || github.event_name == 'pull_request') + if: env.BRANCH_NAME != 'main' && (github.event_name == 'push' || github.event_name == 'pull_request') with: message: | Preview url: ${{ steps.url_preview.outputs.NETLIFY_PREVIEW_URL }}