diff --git a/.github/workflows/release-checks.yaml b/.github/workflows/release-checks.yaml new file mode 100644 index 000000000000..8445dc7d096b --- /dev/null +++ b/.github/workflows/release-checks.yaml @@ -0,0 +1,30 @@ +on: + pull_request: + branches: + - main + workflow_dispatch: + +name: Release Configuration Checks + +jobs: + check-config: + runs-on: ubuntu-latest + name: Check Release config.json + steps: + - uses: actions/checkout@v4 + - name: Check smithy-rs version exists + run: | + SMITHY_RS_VERSION=$(jq -r ".dependencies.smithyRsVersion" config.json) + echo "checking smithy-rs@$SMITHY_RS_VERSION" + mkdir smithy-rs + cd smithy-rs + git init + git remote add origin https://github.com/smithy-lang/smithy-rs.git + + if git fetch origin $SMITHY_RS_VERSION; then + echo "smithy-rs@$SMITHY_RS_VERSION found" + else + echo "::error::no smithy-rs@$SMITHY_RS_VERSION found" + exit 1 + fi + diff --git a/config.json b/config.json new file mode 100644 index 000000000000..5d81d307f0d9 --- /dev/null +++ b/config.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "smithyRsVersion": "release-2025-05-19" + } +}