Skip to content

Commit 2b85507

Browse files
authored
chore: always use dotnet 6 for format checking. (#1403)
* chore:always use dotnet 6 for format checking
1 parent bb399bf commit 2b85507

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/actions/polymorph_codegen/action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ runs:
9797
run: |
9898
echo "PROJECT_DEPENDENCIES=${{ inputs.update-and-regenerate-mpl != 'true' && 'PROJECT_DEPENDENCIES=' || '' }}" >> $GITHUB_OUTPUT
9999
100+
- name: Print dotnet version
101+
shell: bash
102+
run: |
103+
dotnet --version
104+
100105
- name: Regenerate Dafny code using smithy-dafny
101106
# Unfortunately Dafny codegen doesn't work on Windows:
102107
# https://github.com/smithy-lang/smithy-dafny/issues/317

.github/workflows/ci_codegen.yml

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
with:
4949
dotnet-version: ${{ matrix.dotnet-version }}
5050

51+
- name: Create temporary global.json
52+
run: echo '{"sdk":{"rollForward":"latestFeature","version":"6.0.0"}}' > ./global.json
53+
5154
- name: Setup Java 17 for codegen
5255
uses: actions/setup-java@v3
5356
with:

0 commit comments

Comments
 (0)