From 75bc104f4375c43d9b98382b162d9b7eea2252ed Mon Sep 17 00:00:00 2001 From: tom5079 Date: Wed, 2 Feb 2022 05:57:55 +0900 Subject: [PATCH] Update watchdiff.yml --- .github/workflows/watchdiff.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/watchdiff.yml b/.github/workflows/watchdiff.yml index 2fddb732..0a3dfc01 100644 --- a/.github/workflows/watchdiff.yml +++ b/.github/workflows/watchdiff.yml @@ -20,4 +20,4 @@ jobs: run: | git config --global user.name 'Watchdiff bot' git config --global user.email 'tom5079@naver.com' - { git add . && git commit -m "File update" && git push; } | tail -1 | grep -q "nothing to commit" + { git add . && git commit -m "File update" && git push; } | tail -1 | grep -q "nothing to commit" || curl -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"<@&938174944305610792> :bell: :bell: :bell: :bell: :bell: :bell: :bell: :bell: \`\`\`$(git diff HEAD^ HEAD --stat | sed -z 's/\n/\\n/g')\`\`\`\"}" ${{ secrets.DISCORD_WEBHOOK }} && $(exit 1)