Skip to content

Commit 51d37d5

Browse files
committed
Fix CI: remove suffix for default branch and fix deprecation warnings.
1 parent d440d0c commit 51d37d5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@ jobs:
1010

1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616

1717
- name: Prepare version
18-
uses: actions/github-script@v6
18+
uses: actions/github-script@v7
1919
with:
2020
script: |
2121
const script = require(require('path').resolve('./.github/workflows/version.js'))
2222
const vs = script({ context, github, firstRev: 'cfefc91c' });
2323
const majmin = '1.1';
2424
let ver_str = vs.formatVersion(`${majmin}.$(GitRevCount)-$(GitBranch) [$(GitSha6)/$(yyyy)-$(mm)-$(dd)]`);
2525
let ver_suf = vs.formatVersion('$(GitBranch)');
26-
if (ver_suf == 'main') {
27-
ver_str = ver_str.replace('-main', '');
26+
if (ver_suf == 'master') {
27+
ver_str = ver_str.replace('-master', '');
2828
ver_suf = '';
2929
}
3030
core.exportVariable('VER_STR', ver_str);
3131
core.exportVariable('VER_NUM', vs.formatVersion(`${majmin}.$(GitRevCount)`));
3232
core.exportVariable('VER_SUF', ver_suf);
3333
3434
- name: Install dotnet
35-
uses: actions/setup-dotnet@v3
35+
uses: actions/setup-dotnet@v4
3636
with:
3737
dotnet-version: '8.x'
3838
dotnet-quality: 'ga'
@@ -50,7 +50,7 @@ jobs:
5050
run: dotnet nuget push Publish/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
5151

5252
- name: Upload artifact
53-
uses: actions/upload-artifact@v3
53+
uses: actions/upload-artifact@v4
5454
with:
5555
name: RT.Servers-v${{env.VER_NUM}}
5656
path: Publish

0 commit comments

Comments
 (0)