From a5793300f5e01b528e238d19c4104f7506971f9b Mon Sep 17 00:00:00 2001 From: kevaundray Date: Tue, 26 Sep 2023 12:57:46 +0000 Subject: [PATCH 1/2] conditionally run PR action --- .github/workflows/auto-pr-rebuild-script.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-pr-rebuild-script.yml b/.github/workflows/auto-pr-rebuild-script.yml index 5d6fd218c48..1be1d6700e3 100644 --- a/.github/workflows/auto-pr-rebuild-script.yml +++ b/.github/workflows/auto-pr-rebuild-script.yml @@ -70,11 +70,16 @@ 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" + outputs: + changes: ${{ steps.check_changes.outputs.changes }} + - 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 }} From d074cec702fb5a153aa8b44a0f255a3bc2d22f94 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Tue, 26 Sep 2023 14:12:20 +0100 Subject: [PATCH 2/2] Update .github/workflows/auto-pr-rebuild-script.yml --- .github/workflows/auto-pr-rebuild-script.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/auto-pr-rebuild-script.yml b/.github/workflows/auto-pr-rebuild-script.yml index 1be1d6700e3..ac8b5beaa3b 100644 --- a/.github/workflows/auto-pr-rebuild-script.yml +++ b/.github/workflows/auto-pr-rebuild-script.yml @@ -75,8 +75,6 @@ jobs: id: check_changes run: | git diff --quiet tooling/nargo_cli/tests/acir_artifacts/ || echo "::set-output name=changes::true" - outputs: - changes: ${{ steps.check_changes.outputs.changes }} - name: Create or Update PR if: steps.check_changes.outputs.changes == 'true'