Skip to content

Commit 6689107

Browse files
authored
仅在监听模式下启用 ruby 缓存
1 parent df53ff9 commit 6689107

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/pr-preview.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,14 @@ jobs:
207207
uses: ruby/setup-ruby@v1
208208
with:
209209
ruby-version: "3.4"
210-
bundler-cache: true
210+
bundler-cache: >-
211+
${{
212+
contains(github.event.pull_request.labels.*.name, 'preview/watch') ||
213+
contains(github.event.issue.labels.*.name, 'preview/watch') || (
214+
github.event_name == 'issue_comment' &&
215+
github.event.comment.body == '/preview watch'
216+
)
217+
}}
211218
cache-version: pr${{ env.GITHUB_PR_NUMBER }}
212219
- name: Jekyll Build
213220
run: |

0 commit comments

Comments
 (0)