Skip to content

Commit

Permalink
Merge pull request #33 from sophia-guo/subDir
Browse files Browse the repository at this point in the history
Enable subdir run-aqa
  • Loading branch information
smlambert authored Oct 14, 2020
2 parents 535d6f6 + a81e626 commit 7d8787b
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 7d8787b

Please sign in to comment.