Skip to content

Commit f1e1a4f

Browse files
authored
Merge pull request #328 from microsoft/baywet-patch-1
- switches codeql to windows latest to avoid drifts
2 parents 22ebf50 + bac6a2a commit f1e1a4f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
jobs:
2525
analyze:
2626
name: Analyze
27-
runs-on: windows-2019
27+
runs-on: windows-latest
2828
permissions:
2929
actions: read
3030
contents: read
@@ -58,8 +58,11 @@ jobs:
5858

5959
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6060
# If this step fails, then you should remove it and run the build manually (see below)
61-
- name: Autobuild
62-
uses: github/codeql-action/autobuild@v2
61+
# - name: Autobuild
62+
# uses: github/codeql-action/autobuild@v2
63+
64+
- name: build
65+
run: dotnet build src\Microsoft.OpenApi.OData.Reader\Microsoft.OpenAPI.OData.Reader.csproj -c Release
6366

6467
# ℹ️ Command-line programs to run using the OS shell.
6568
# 📚 https://git.io/JvXDl

tool/versioning.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<VersionStartYear Condition="'$(VersionStartYear)' == ''">2020</VersionStartYear>
3333

3434
<!-- { Now.Year - 2019 + 1}{MM}{DD} -->
35-
<VersionDateCode>$([System.Convert]::ToInt16('$([MSBuild]::Add(1, $([MSBuild]::Subtract($([System.DateTime]::Now.Year), $(VersionStartYear)))))$([System.DateTime]::Now.ToString("MMdd"))'))</VersionDateCode>
35+
<VersionDateCode>$([System.Convert]::ToInt32('$([MSBuild]::Add(1, $([MSBuild]::Subtract($([System.DateTime]::Now.Year), $(VersionStartYear)))))$([System.DateTime]::Now.ToString("MMdd"))'))</VersionDateCode>
3636

3737
<VersionRevision Condition="'$(VersionRevision)' == '' OR '$(VersionRevision)' == '0'">$([System.Convert]::ToString($(VersionDateCode)))</VersionRevision>
3838
</PropertyGroup>

0 commit comments

Comments
 (0)