Skip to content

Commit 88f9b27

Browse files
committed
modify check in PR build
1 parent 26a7f6c commit 88f9b27

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/pr-build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,20 @@ jobs:
1717

1818
- name: Check CHANGELOG
1919
run: |
20-
# Check if PR is from bot
20+
# Check if PR is from workflows bot or dependabot
2121
if [[ "${{ github.event.pull_request.user.login }}" == "aws-application-signals-bot" ]]; then
22-
echo "Skipping: PR from aws-application-signals-bot"
22+
echo "Skipping check: PR from aws-application-signals-bot"
23+
exit 0
24+
fi
25+
26+
if [[ "${{ github.event.pull_request.user.login }}" == "dependabot[bot]" ]]; then
27+
echo "Skipping check: PR from dependabot"
2328
exit 0
2429
fi
2530
2631
# Check for Skip Changelog label
27-
if echo '${{ toJSON(github.event.pull_request.labels.*.name) }}' | jq -r '.[]' | grep -q "Skip Changelog"; then
28-
echo "Skip Changelog label found - check passed"
32+
if echo '${{ toJSON(github.event.pull_request.labels.*.name) }}' | jq -r '.[]' | grep -q "skip changelog"; then
33+
echo "Skipping check: Skip Changelog label found"
2934
exit 0
3035
fi
3136

0 commit comments

Comments
 (0)