diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 6fdbefbf9..d40e2bad7 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -62,7 +62,7 @@ jobs: retention-days: 30 - name: Comment PR with playwright report uses: thollander/actions-comment-pull-request@v2 - if: ${{ !cancelled() }} + if: ${{ !cancelled() && github.ref != 'refs/heads/production' && github.ref != 'refs/heads/main' }} with: pr_number: ${{ steps.ref_from_sha.outputs.pr_number }} message: | diff --git a/.github/workflows/post_deployment.yml b/.github/workflows/post_deployment.yml index 4b22e0513..f294b8d3c 100644 --- a/.github/workflows/post_deployment.yml +++ b/.github/workflows/post_deployment.yml @@ -10,7 +10,7 @@ jobs: update_pr_description: # Only want to run on success, otherwise it might be "pending", or "failure". # Filter out storybook deployments and temporarily Netlify deployments - if: ${{ (github.event.deployment.ref != 'main') && (github.event.deployment_status.state == 'success') && !startsWith(github.event.deployment_status.environment, 'storybook')}} + if: ${{ github.ref != 'refs/heads/production' && github.ref != 'refs/heads/main' && (github.event.deployment_status.state == 'success') && !startsWith(github.event.deployment_status.environment, 'storybook')}} name: Add deploy URL to PR description runs-on: ubuntu-latest steps: