Skip to content

Commit 214e962

Browse files
changes smithy-diff like mpl
1 parent 53dfc2c commit 214e962

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/smithy-diff.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
shell: bash
2222
run:
2323
# Checks to see if any of the customer facing Models are being updated.
24-
# Doing this check allows us to catch things like, missing @javadoc trait documentation.
25-
echo "FILES=$(git diff --name-only origin/main origin/${GITHUB_HEAD_REF} DynamoDbEncryption/dafny/**/Model/*.smithy | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
24+
# Doing this check allows us to catch things like, missing @javadoc trait documentation or bug in smithy dafny that has not be resolved.
25+
echo "FILES=$(git diff --name-only origin/main origin/${GITHUB_HEAD_REF} | grep '\.smithy$' | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
2626

2727
- name: Check if FILES is not empty
2828
id: comment
@@ -32,6 +32,7 @@ jobs:
3232
FILES: ${{ steps.file-changes.outputs.FILES }}
3333
if: ${{env.FILES != ''}}
3434
run: |
35+
# TODO: If https://github.com/smithy-lang/smithy-dafny/issues/491 is resolved, remove comment about this issue.
3536
COMMENT="@${{github.actor}}, I noticed you are updating the smithy model files.\nDoes this update need new or updated javadoc trait documentation?\n Are you adding constraints inside list, map or union? Do you know about this issue: https://github.com/smithy-lang/smithy-dafny/issues/491?"
3637
COMMENT_URL="https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"
37-
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST $COMMENT_URL -d "{\"body\":\"$COMMENT\"}"
38+
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST $COMMENT_URL -d "{\"body\":\"$COMMENT\"}"

0 commit comments

Comments
 (0)