From e38107ddd7401f79c71eabe0dfdc3b88ce0fca4d Mon Sep 17 00:00:00 2001 From: Ashley Weaver Date: Tue, 2 Jul 2024 10:31:09 -0400 Subject: [PATCH] Clean up --- .github/workflows/broken-link-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/broken-link-check.yml b/.github/workflows/broken-link-check.yml index 3b97b8ba..80a45664 100644 --- a/.github/workflows/broken-link-check.yml +++ b/.github/workflows/broken-link-check.yml @@ -18,7 +18,7 @@ jobs: jobSummary: true args: --no-progress --accept '200..=299, 401, 405' . - name: "Send Slack alert" - if: ${{ env.lychee_exit_code }} != 0 + if: env.lychee_exit_code != 0 uses: slackapi/slack-github-action@v1.26.0 env: SLACK_WEBHOOK_URL: "https://hooks.slack.com/triggers/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" # TODO: set as env var? @@ -28,5 +28,5 @@ jobs: "Details": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } - name: "Fail workflow" - if: ${{ env.lychee_exit_code }} != 0 + if: env.lychee_exit_code != 0 run: exit ${{ env.lychee_exit_code }}