From 62fd81d8028251234be67b252b6db661959e3e5a Mon Sep 17 00:00:00 2001 From: x-mass <36629999+x-mass@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:45:57 +0000 Subject: [PATCH] Don't checkout current repo in recursive checkout action, fix zkLLVM related run getter --- .github/workflows/pull_request.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index dafd995b..5cd4d8cb 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -83,13 +83,13 @@ jobs: zkllvm_ref="master" zkllvm_repo="NilFoundation/zkLLVM" - echo "$prs_refs" | while read line; do - echo $line + while read -r line; do + echo "$line" if [[ $line == "${zkllvm_repo}:"* ]]; then - zkllvm_ref=$(echo $line | cut -d ' ' -f 2) + zkllvm_ref=$(echo "$line" | cut -d ' ' -f 2) break fi - done + done <<< "$prs_refs" if [[ $zkllvm_ref == refs/pull/* ]]; then echo "Considering reference ${zkllvm_ref} a pr ref" @@ -189,6 +189,7 @@ jobs: with: paths: | /__w/proof-producer/proof-producer/** + !/__w/proof-producer/proof-producer/ !/__w/proof-producer/proof-producer/**/.git/** refs: ${{ needs.handle-syncwith.outputs.prs-refs }}