Skip to content

Commit 57876c9

Browse files
authored
feat: remove deprecated shapes check (#1692)
1 parent be93329 commit 57876c9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Remove deprecated shapes check
2+
on:
3+
pull_request:
4+
types: [ opened, synchronize, reopened, labeled, unlabeled ]
5+
branches: [ main ]
6+
7+
jobs:
8+
remove-deprecated-shapes:
9+
# Only runs if the deprecated-shape-cutoff-date was not updated
10+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'updated-deprecated-shape-cutoff-date') }}
11+
permissions: {}
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Update deprecated shape cutoff date
15+
run: |
16+
# Only continue on branches starting with vX.X (e.g. v1.2, v1.2.3, v1.2-main)
17+
if [[ ! "${{ github.head_ref }}" =~ ^v[0-9]+\.[0-9]+.*$ ]]; then
18+
exit 0
19+
fi
20+
21+
echo "Please update the deprecated shape cutoff date and add the 'updated-deprecated-shape-cutoff-date' label"
22+
echo "It must be set to the release date of the current minor version"
23+
echo "See: https://github.com/aws/aws-sdk-kotlin/blob/8df78fb048ddc40120c8fe370cd3e0d35c077b2b/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/sdk/Util.kt#L16"
24+
exit 1

0 commit comments

Comments
 (0)