From d11c8e2a7e45bab16ef59447b9c04ccc46b5e6f2 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Thu, 20 Jan 2022 14:36:12 +0800 Subject: fix github killing the script unintentionally --- .github/workflows/workflow.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 881e9ce..b97ca8b 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -17,7 +17,9 @@ jobs: cd scripts npm install npm run main -- "https://github.com/${{ github.repository }}/blob/${GITHUB_REF##*/}/" ../README.md ../README.md - cd .. + - name: Set environment variables + run: | + set +e # need to disable this git diff --exit-code -s README.md echo "has_diff=$?" >> $GITHUB_ENV - name: create PR -- cgit v1.2.3