You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/codeql.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,11 +55,11 @@ jobs:
55
55
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
sed -i "s|\(/aws-observability/adot-autoinstrumentation-node:\)v[0-9]\+\.[0-9]\+\.[0-9]\+|\1v${{github.event.inputs.version}}|g" .github/workflows/daily-scan.yml
116
+
117
+
# for patch releases, avoid merge conflict by manually resolving CHANGELOG with main
118
+
if [[ "${{ github.event.inputs.is_patch }}" == "true" ]]; then
119
+
# Copy the patch release entries
120
+
sed -n "/^## v${VERSION}/,/^## v[0-9]/p" CHANGELOG.md | sed '$d' > /tmp/patch_release_section.txt
121
+
git fetch origin main
122
+
git show origin/main:CHANGELOG.md > CHANGELOG.md
123
+
# Insert the patch release entries after Unreleased
if [[ "${{ github.event.pull_request.user.login }}" == "aws-application-signals-bot" ]]; then
30
+
echo "Skipping check: PR from aws-application-signals-bot"
31
+
exit 0
32
+
fi
33
+
34
+
if [[ "${{ github.event.pull_request.user.login }}" == "dependabot[bot]" ]]; then
35
+
echo "Skipping check: PR from dependabot"
36
+
exit 0
37
+
fi
38
+
39
+
# Check for skip changelog label
40
+
if echo '${{ toJSON(github.event.pull_request.labels.*.name) }}' | jq -r '.[]' | grep -q "skip changelog"; then
41
+
echo "Skipping check: skip changelog label found"
42
+
exit 0
43
+
fi
44
+
45
+
# Fetch base branch and check for CHANGELOG modifications
46
+
git fetch origin ${{ github.base_ref }}
47
+
if git diff --name-only origin/${{ github.base_ref }}..HEAD | grep -q "CHANGELOG.md"; then
48
+
echo "CHANGELOG.md entry found - check passed"
49
+
exit 0
50
+
fi
51
+
52
+
echo "It looks like you didn't add an entry to CHANGELOG.md. If this change affects the SDK behavior, please update CHANGELOG.md and link this PR in your entry. If this PR does not need a CHANGELOG entry, you can add the 'Skip Changelog' label to this PR."
0 commit comments