Skip to content

Commit

Permalink
attempt to understand github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
olynch committed Aug 25, 2024
1 parent 2d9bf03 commit 545fc1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 545fc1e

Please sign in to comment.