Skip to content

Commit 0f2647e

Browse files
Miqueasherjj22ee
authored andcommitted
updating 3p actions using VersionID to commitiD
1 parent 93a3526 commit 0f2647e

File tree

1 file changed

+44
-8
lines changed

1 file changed

+44
-8
lines changed

.github/workflows/pr-build.yml

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,42 @@ permissions:
1010
contents: read
1111

1212
jobs:
13+
changelog-check:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #5.0.0
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Check CHANGELOG
21+
run: |
22+
# Check if PR is from workflows bot or dependabot
23+
if [[ "${{ github.event.pull_request.user.login }}" == "aws-application-signals-bot" ]]; then
24+
echo "Skipping check: PR from aws-application-signals-bot"
25+
exit 0
26+
fi
27+
28+
if [[ "${{ github.event.pull_request.user.login }}" == "dependabot[bot]" ]]; then
29+
echo "Skipping check: PR from dependabot"
30+
exit 0
31+
fi
32+
33+
# Check for skip changelog label
34+
if echo '${{ toJSON(github.event.pull_request.labels.*.name) }}' | jq -r '.[]' | grep -q "skip changelog"; then
35+
echo "Skipping check: skip changelog label found"
36+
exit 0
37+
fi
38+
39+
# Fetch base branch and check for CHANGELOG modifications
40+
git fetch origin ${{ github.base_ref }}
41+
if git diff --name-only origin/${{ github.base_ref }}..HEAD | grep -q "CHANGELOG.md"; then
42+
echo "CHANGELOG.md entry found - check passed"
43+
exit 0
44+
fi
45+
46+
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."
47+
exit 1
48+
1349
build:
1450
runs-on: ubuntu-latest
1551
strategy:
@@ -18,7 +54,7 @@ jobs:
1854
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1955
steps:
2056
- name: Checkout Repo @ SHA - ${{ github.sha }}
21-
uses: actions/checkout@v4
57+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #5.0.0
2258

2359
- name: Build Wheel and Image Files
2460
uses: ./.github/actions/artifacts_build
@@ -40,8 +76,8 @@ jobs:
4076
runs-on: ubuntu-latest
4177
steps:
4278
- name: Checkout Repo @ SHA - ${{ github.sha }}
43-
uses: actions/checkout@v4
44-
- uses: actions/setup-python@v5
79+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #5.0.0
80+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c #v6.0.0
4581
if: ${{ matrix.language == 'python' }}
4682
with:
4783
python-version: '3.x'
@@ -63,7 +99,7 @@ jobs:
6399
tox-environment: ["spellcheck", "lint"]
64100
steps:
65101
- name: Checkout Repo @ SHA - ${{ github.sha }}
66-
uses: actions/checkout@v4
102+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #5.0.0
67103

68104
- name: Install libsnappy-dev
69105
if: ${{ matrix.tox-environment == 'lint' }}
@@ -84,19 +120,19 @@ jobs:
84120
runs-on: ubuntu-latest
85121
steps:
86122
- name: Checkout Repo @ SHA - ${{ github.sha }}
87-
uses: actions/checkout@v4
123+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #5.0.0
88124

89125
- name: Gradle validation
90-
uses: gradle/wrapper-validation-action@v1
126+
uses: gradle/actions/wrapper-validation@ed408507eac070d1f99cc633dbcf757c94c7933a #4.4.3
91127

92128
- name: Set up Java
93-
uses: actions/setup-java@v4
129+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 #v4.0.3
94130
with:
95131
java-version: 17
96132
distribution: temurin
97133

98134
- name: Setup Gradle
99-
uses: gradle/gradle-build-action@v3
135+
uses: gradle/gradle-build-action@ed408507eac070d1f99cc633dbcf757c94c7933a #4.4.3
100136

101137
- name: Build with Gradle
102138
run: cd performance-tests; ./gradlew spotlessCheck

0 commit comments

Comments
 (0)