File tree 4 files changed +41
-11
lines changed
examples/dotnet/SeleniumDocs
4 files changed +41
-11
lines changed Original file line number Diff line number Diff line change 56
56
dotnet-version : 6.x
57
57
source-url : https://nuget.pkg.github.com/seleniumhq/index.json
58
58
env :
59
- NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
59
+ NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
60
+ - name : Update Nightly version non-Windows
61
+ if : matrix.release == 'nightly' && matrix.os != 'windows-latest'
62
+ run :
63
+ |
64
+ latest_nightly=$(./scripts/latest-nightly-version.sh)
65
+ dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.WebDriver --version $latest_nightly
66
+ dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.Support --version $latest_nightly
67
+ env :
68
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
+ - name : Update Nightly version Windows
70
+ if : matrix.release == 'nightly' && matrix.os == 'windows-latest'
71
+ shell : pwsh
72
+ run :
73
+ |
74
+ $latest_nightly = ./scripts/latest-nightly-version.ps1
75
+ dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.WebDriver --version $latest_nightly
76
+ dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.Support --version $latest_nightly
77
+ env :
78
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60
79
- name : Set up Java
61
80
uses : actions/setup-java@v4
62
81
with :
70
89
command : |
71
90
cd examples/dotnet/SeleniumDocs
72
91
dotnet test
73
- env :
74
- SE_RELEASE : ${{ matrix.release }}
Original file line number Diff line number Diff line change 10
10
<PackageReference Include =" Microsoft.IdentityModel.Tokens" Version =" 7.5.1" />
11
11
<PackageReference Include =" MSTest.TestAdapter" Version =" 3.3.1" />
12
12
<PackageReference Include =" MSTest.TestFramework" Version =" 3.3.1" />
13
- </ItemGroup >
14
-
15
- <ItemGroup Label =" Nightly" Condition =" '$(SE_RELEASE)' == 'nightly' " >
16
- <PackageReference Include =" Selenium.Support" Version =" 4.20.0-nightly202404181318" />
17
- <PackageReference Include =" Selenium.WebDriver" Version =" 4.20.0-nightly202404181318" />
18
- </ItemGroup >
19
-
20
- <ItemGroup Label =" Stable" Condition =" '$(SE_RELEASE)' == 'stable' " >
21
13
<PackageReference Include =" Selenium.Support" Version =" 4.19.0" />
22
14
<PackageReference Include =" Selenium.WebDriver" Version =" 4.19.0" />
23
15
</ItemGroup >
Original file line number Diff line number Diff line change
1
+ $PACKAGE_TYPE = $args [0 ]
2
+ $PACKAGE_NAME = $args [1 ]
3
+
4
+ $PATH_PACKAGES_API = " orgs/seleniumhq/packages/$PACKAGE_TYPE /$PACKAGE_NAME /versions"
5
+ $ACCEPT_HEADER = " Accept: application/vnd.github+json"
6
+ $VERSION_HEADER = " X-GitHub-Api-Version: 2022-11-28"
7
+
8
+ $ghApiCommand = " gh api -H `" $ACCEPT_HEADER `" -H `" $VERSION_HEADER `" $PATH_PACKAGES_API | jq '.[0].name'"
9
+ Invoke-Expression - Command $ghApiCommand
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -xe
4
+
5
+ PACKAGE_TYPE=" $1 "
6
+ PACKAGE_NAME=" $2 "
7
+
8
+ PATH_PACKAGES_API=" orgs/seleniumhq/packages/$PACKAGE_TYPE /$PACKAGE_NAME /versions"
9
+ ACCEPT_HEADER=" Accept: application/vnd.github+json"
10
+ VERSION_HEADER=" X-GitHub-Api-Version: 2022-11-28"
11
+
12
+ gh api -H " $ACCEPT_HEADER " -H " $VERSION_HEADER " $PATH_PACKAGES_API | jq ' .[0].name'
You can’t perform that action at this time.
0 commit comments