From 8788ab7fc49f63b3eec0d0ed428daef6e88e8e3f Mon Sep 17 00:00:00 2001 From: Sarah Schneider Date: Thu, 12 Nov 2020 14:53:28 -0500 Subject: [PATCH] Continue on error during link check (#16442) * continue on error * use failure instead of continue-on-error * Update .github/workflows/check-all-english-links.yml Co-authored-by: James M. Greene * add missing colon Co-authored-by: James M. Greene --- .github/workflows/check-all-english-links.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check-all-english-links.yml b/.github/workflows/check-all-english-links.yml index 15ea8c0fed..6f4b2b4672 100644 --- a/.github/workflows/check-all-english-links.yml +++ b/.github/workflows/check-all-english-links.yml @@ -18,16 +18,11 @@ jobs: run: npm run build - name: Run script run: script/check-english-links.js > broken_links.md - - name: Check if any broken links + - if: ${{ failure() }} + name: Get title for issue id: check - run: | - if [ "$(grep '0 broken links found' broken_links.md)" ]; then - echo ::set-output name=continue::no - else - echo "::set-output name=continue::yes" - echo "::set-output name=title::$(head -1 broken_links.md)" - fi - - if: ${{ steps.check.outputs.continue == 'yes' }} + run: echo "::set-output name=title::$(head -1 broken_links.md)" + - if: ${{ failure() }} name: Create issue from file uses: peter-evans/create-issue-from-file@35e304e2a12caac08c568247a2cb46ecd0c3ecc5 with: