From 28562e4db75a414de72ef191542a046c7b1e4765 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Wed, 17 Aug 2022 22:13:50 +0800 Subject: [PATCH] Update verify-pr.yml (#184) --- .github/workflows/verify-pr.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/verify-pr.yml b/.github/workflows/verify-pr.yml index c2b81cd..240808b 100644 --- a/.github/workflows/verify-pr.yml +++ b/.github/workflows/verify-pr.yml @@ -16,31 +16,31 @@ jobs: run: | ./hack/verify-fmt.sh domain.txt || { echo "Please run './hack/fmt.sh domain.txt'" - gh pr comment "${{ github.event.pull_request.number }}" --body "请运行 `./hack/fmt.sh domain.txt` 对内容进行排序" + gh pr comment "${{ github.event.pull_request.number }}" --body '请运行 `./hack/fmt.sh domain.txt` 对内容进行排序' exit 1 } - name: Verify mirror.txt run: | ./hack/verify-fmt.sh mirror.txt || { echo "Please run './hack/fmt.sh domain.txt'" - gh pr comment "${{ github.event.pull_request.number }}" --body "请运行 `./hack/fmt.sh mirror.txt` 对内容进行排序" + gh pr comment "${{ github.event.pull_request.number }}" --body '请运行 `./hack/fmt.sh mirror.txt` 对内容进行排序' exit 1 } - name: Verify docker Prefix run: | ./hack/verify-docker-prefix.sh mirror.txt || { - gh pr comment "${{ github.event.pull_request.number }}" --body "请成对提交 `docker.io/*` 和 `docker.io/library/*` 形式的镜像" + gh pr comment "${{ github.event.pull_request.number }}" --body '请成对提交 `docker.io/*` 和 `docker.io/library/*` 形式的镜像' exit 1 } - name: Verify k8s Prefix run: | ./hack/verify-k8s-prefix.sh mirror.txt || { - gh pr comment "${{ github.event.pull_request.number }}" --body "请使用 `registry.k8s.io/*` 替代 `k8s.gcr.io/*`" + gh pr comment "${{ github.event.pull_request.number }}" --body '请使用 `registry.k8s.io/*` 替代 `k8s.gcr.io/*`' exit 1 } - name: Verify Image Exists run: | ./hack/verify-image.sh mirror.txt https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}.patch || { - gh pr comment "${{ github.event.pull_request.number }}" --body "有镜像不存在请检查后重新提交" + gh pr comment "${{ github.event.pull_request.number }}" --body '有镜像不存在请检查后重新提交' exit 1 }