diff options
author | takase1121 <20792268+takase1121@users.noreply.github.com> | 2022-01-01 20:00:55 +0800 |
---|---|---|
committer | takase1121 <20792268+takase1121@users.noreply.github.com> | 2022-01-01 20:00:55 +0800 |
commit | dd3f6a2d6ca622a549cc878c7db9ba96aa2212e6 (patch) | |
tree | d5f589ec14213740bfc110603735b5105b6205c4 /.github/workflows/workflow.yml | |
parent | 75591a25326dbc1aeb5433ecd34a7d152cdf3fe4 (diff) | |
download | lite-xl-plugins-dd3f6a2d6ca622a549cc878c7db9ba96aa2212e6.tar.gz lite-xl-plugins-dd3f6a2d6ca622a549cc878c7db9ba96aa2212e6.zip |
run CI only if generated file changed
Diffstat (limited to '.github/workflows/workflow.yml')
-rw-r--r-- | .github/workflows/workflow.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index e2d3662..ff94ce7 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -17,7 +17,11 @@ jobs: cd scripts npm install npm run main -- "https://github.com/${{ github.repository }}/blob/${GITHUB_REF##*/}/" ../README.md ../README.md + cd .. + git diff --exit-code -s README.md + echo "has_diff=$?" >> $GITHUB_ENV - name: create PR + if: env.has_diff == 1 uses: peter-evans/create-pull-request@v3 with: commit-message: Reorganize README.md |