diff --git a/.github/workflows/check-all-english-links.yml b/.github/workflows/check-all-english-links.yml index 15ea8c0fed86..6f4b2b46726a 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: diff --git a/includes/header-notification.html b/includes/header-notification.html index 928ba01d9439..416f6686b19c 100644 --- a/includes/header-notification.html +++ b/includes/header-notification.html @@ -1,11 +1,37 @@ + + +{% if currentLanguage != 'en' and page.relativePath contains '/site-policy/' %} + {% assign translation_notification_type = "true" %} + {% assign translation_notification = site.data.reusables.policies.translation %} + + +{% elsif currentLanguage != 'en' && !languages[currentLanguage].wip %} + {% assign translation_notification_type = "true" %} + {% assign translation_notification = site.data.ui.header.notices.localization_complete %} + + +{% elsif currentLanguage != 'en' && languages[currentLanguage].wip %} + {% assign translation_notification_type = "true" %} + {% assign translation_notification = site.data.ui.header.notices.localization_in_progress %} +{% endif %} + + + + {% if currentVersion == "github-ae@latest" %} -