Skip to content

Commit c64a0c7

Browse files
authored
chore(GHW): Smithy-Diff should be on the PR diff, not diff b/w main (#1070)
1 parent 9e195a1 commit c64a0c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/smithy-diff.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222
shell: bash
2323
env:
2424
GITHUB_HEAD: ${{github.event.pull_request.head.ref}}
25+
GITHUB_BASE: ${{github.event.pull_request.base.ref}}
2526
run:
2627
# Checks to see if any of the smithy Models are being updated.
2728
# Doing this check allows us to catch things like, missing @javadoc trait documentation or bug in smithy dafny that has not be resolved.
28-
echo "FILES=$(git diff --name-only origin/main origin/${GITHUB_HEAD} | grep '\.smithy$' | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
29+
echo "FILES=$(git diff --name-only origin/${GITHUB_BASE} origin/${GITHUB_HEAD} | grep '\.smithy$' | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
2930

3031
- name: Check if FILES is not empty
3132
id: comment

0 commit comments

Comments
 (0)