From ed34735841f01d2475612ee3598e17882715df5d Mon Sep 17 00:00:00 2001 From: Joshua Melville Date: Thu, 21 Nov 2024 10:46:18 +0200 Subject: [PATCH] fix logic for not checking links on analytics package --- .github/workflows/check-links.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index 4cb8b85..91359a5 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -6,7 +6,7 @@ jobs: linkinator: runs-on: ubuntu-latest # Runs if the deployment environment starts with 'preview' and the deployment status is 'success', and if the url does not contain 'analytics' - if: ${{ startsWith(github.event.deployment_status.environment, 'preview') && github.event.deployment_status.state == 'success' }} && !contains(github.event.deployment_status.environment_url, 'analytics') + if: ${{ startsWith(github.event.deployment_status.environment, 'preview') && github.event.deployment_status.state == 'success' && !contains(github.event.deployment_status.environment_url, 'analytics')}} steps: - name: Checkout the repository uses: actions/checkout@v4