Skip to content

Commit

Permalink
Enalbe subdir run-aqa
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <[email protected]>
  • Loading branch information
sophia-guo committed Oct 14, 2020
1 parent 535d6f6 commit a81e626
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2900,11 +2900,11 @@ function run() {
core.error(`jdksource should be one of [upstream, github-hosted, install-jdk]. Found: ${jdksource}`);
}
if (buildList !== 'openjdk' &&
buildList !== 'external' &&
buildList !== 'functional' &&
buildList !== 'perf' &&
buildList !== 'system') {
core.setFailed(`buildList should be one of [openjdk, external, functional, system, perf]. Found: ${buildList}`);
!buildList.startsWith('external') &&
!buildList.startsWith('functional') &&
!buildList.startsWith('perf') &&
!buildList.startsWith('system')) {
core.setFailed(`buildList should be one of or sub dir of [openjdk, external, functional, system, perf]. Found: ${buildList}`);
}
if (jdksource !== 'upstream' && version.length === 0) {
core.setFailed('Please provide jdkversion if jdksource is github-hosted installed or AdoptOpenJKD/install-jdk installed.');
Expand Down
10 changes: 5 additions & 5 deletions src/aqa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ async function run(): Promise<void> {

if (
buildList !== 'openjdk' &&
buildList !== 'external' &&
buildList !== 'functional' &&
buildList !== 'perf' &&
buildList !== 'system'
!buildList.startsWith('external') &&
!buildList.startsWith('functional') &&
!buildList.startsWith('perf') &&
!buildList.startsWith('system')
) {
core.setFailed(
`buildList should be one of [openjdk, external, functional, system, perf]. Found: ${buildList}`
`buildList should be one of or sub dir of [openjdk, external, functional, system, perf]. Found: ${buildList}`
)
}
if (jdksource !== 'upstream' && version.length === 0) {
Expand Down

0 comments on commit a81e626

Please sign in to comment.