Skip to content

Commit

Permalink
Merge pull request #126 from ToposInstitute/release-deploy-fix
Browse files Browse the repository at this point in the history
Disable PR comment on release
  • Loading branch information
epatters authored Aug 24, 2024
2 parents 22b133c + f8a2cb9 commit 2d9bf03
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' }}
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' }}
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 2d9bf03

Please sign in to comment.