We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb10fc commit 261cf4fCopy full SHA for 261cf4f
1 file changed
.github/workflows/update_third_party_tests.yml
@@ -39,7 +39,21 @@ jobs:
39
env:
40
TESTS: third_party_0 third_party_1 trycmd other ci
41
42
+ - name: Require that a snapshot changed
43
+ id: snapshot
44
+ run: |
45
+ set +e
46
+ git diff --quiet -- '*.stdout'
47
+ status=$?
48
+ set -e
49
+ if [ "$status" -eq 1 ]; then
50
+ echo "changed=true" >> "$GITHUB_OUTPUT"
51
+ elif [ "$status" -ne 0 ]; then
52
+ exit "$status"
53
+ fi
54
+
55
- name: Create pull request
56
+ if: steps.snapshot.outputs.changed == 'true'
57
uses: peter-evans/create-pull-request@v8
58
with:
59
title: "Update third-party tests"
0 commit comments