From b48478244d7c441787427658ae4a8634995ba805 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Tue, 30 Jun 2026 06:16:49 -0400 Subject: [PATCH] Require snapshot changes in "Update third-party tests" workflow --- .github/workflows/update_third_party_tests.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/update_third_party_tests.yml b/.github/workflows/update_third_party_tests.yml index 15e7b854..7996e6fc 100644 --- a/.github/workflows/update_third_party_tests.yml +++ b/.github/workflows/update_third_party_tests.yml @@ -39,7 +39,21 @@ jobs: env: TESTS: third_party_0 third_party_1 trycmd other ci + - name: Require that a snapshot changed + id: snapshot + run: | + set +e + git diff --quiet -- '*.stdout' + status=$? + set -e + if [ "$status" -eq 1 ]; then + echo "changed=true" >> "$GITHUB_OUTPUT" + elif [ "$status" -ne 0 ]; then + exit "$status" + fi + - name: Create pull request + if: steps.snapshot.outputs.changed == 'true' uses: peter-evans/create-pull-request@v8 with: title: "Update third-party tests"