From 59bb9042a527896918b47bb04ed5fdeb0c8951a7 Mon Sep 17 00:00:00 2001 From: Merve Noyan Date: Fri, 22 Sep 2023 10:30:46 +0200 Subject: [PATCH] Purposefully failing --- .github/workflows/autodocs.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/autodocs.yml b/.github/workflows/autodocs.yml index 912e8941..0d892b81 100644 --- a/.github/workflows/autodocs.yml +++ b/.github/workflows/autodocs.yml @@ -23,13 +23,8 @@ jobs: output=$(text-generation-launcher --help) { echo '```'; echo $output; echo '```'; } > launcher_test.md if diff launcher_test.md docs/source/basic_tutorials/launcher.md; then - rm docs/source/basic_tutorials/launcher.md - { echo '```'; echo $output; echo '```'; } > docs/source/basic_tutorials/launcher.md - echo "$(cat docs/source/basic_tutorials/launcher.md)" - echo "Docs are updated!" - git add docs/source/basic_tutorials/launcher.md - git commit -m "Update launcher.md" - git push + echo "Docs aren't updated, update them!" + exit 1 fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}