From b037392064c79ce44d8ba562e55e0151d2d42907 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Tue, 26 Sep 2023 14:29:37 +0100 Subject: [PATCH] fix: Conditionally run the "Create or Update PR" step in acir artifacts rebuild workflow (#2849) --- .github/workflows/auto-pr-rebuild-script.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-pr-rebuild-script.yml b/.github/workflows/auto-pr-rebuild-script.yml index 5d6fd218c48..ac8b5beaa3b 100644 --- a/.github/workflows/auto-pr-rebuild-script.yml +++ b/.github/workflows/auto-pr-rebuild-script.yml @@ -70,11 +70,14 @@ jobs: run: | chmod +x ./rebuild.sh ./rebuild.sh - - - name: Discard changes in nargo directory - run: git restore --source=HEAD --staged --worktree -- nargo/ - + + - name: Check for changes in acir_artifacts directory + id: check_changes + run: | + git diff --quiet tooling/nargo_cli/tests/acir_artifacts/ || echo "::set-output name=changes::true" + - name: Create or Update PR + if: steps.check_changes.outputs.changes == 'true' uses: peter-evans/create-pull-request@v3 with: token: ${{ secrets.NOIR_REPO_TOKEN }}