Skip to content

Commit

Permalink
fix: Conditionally run the "Create or Update PR" step in acir artifac…
Browse files Browse the repository at this point in the history
…ts rebuild workflow (noir-lang#2849)
  • Loading branch information
kevaundray authored and Sakapoi committed Oct 19, 2023
1 parent ef15a0a commit b037392
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/auto-pr-rebuild-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b037392

Please sign in to comment.