Skip to content

Commit f6bcdef

Browse files
committed
feat: remove deprecated shapes check
1 parent 8716c23 commit f6bcdef

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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: Check branch name
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+
- name: Update deprecated shape cutoff date
22+
run: |
23+
echo "Please update the deprecated shape cutoff date and add the 'updated-deprecated-shape-cutoff-date' label"
24+
echo "It must be set to the release date of the current minor version"
25+
echo "See: https://github.com/aws/aws-sdk-kotlin/blob/8df78fb048ddc40120c8fe370cd3e0d35c077b2b/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/sdk/Util.kt#L16"
26+
exit 1

0 commit comments

Comments
 (0)