Skip to content

Commit e223a03

Browse files
committed
ci(github-actions): Rebuild distribution files for custom actions
- Rebuild cache-keys action distribution - Rebuild create-release action distribution - Rebuild extract-versions action distribution - Rebuild gradle-exec action distribution - Rebuild maven-version-check action distribution - Rebuild publish-report action distribution - Rebuild test-collector action distribution - Update github-utils shared utilities - Update CI workflow configuration - Ensure distribution files are in sync with source changes
1 parent 0fe29a7 commit e223a03

9 files changed

Lines changed: 65 additions & 45 deletions

File tree

.github/actions/cache-keys/dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/create-release/dist/index.js

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/extract-versions/dist/index.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/gradle-exec/dist/index.js

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/maven-version-check/dist/index.js

Lines changed: 12 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/publish-report/dist/index.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/shared/src/github-utils.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,28 @@ export function getInput(name: string, required = false): string {
3030

3131
/**
3232
* Get a boolean input value from the action
33+
* Handles both YAML 1.2 Core Schema booleans and string representations
3334
*
3435
* @param name - Input name
3536
* @param required - Whether the input is required
3637
* @returns Boolean value
3738
*/
3839
export function getBooleanInput(name: string, required = false): boolean {
39-
return core.getBooleanInput(name, { required });
40+
const value = core.getInput(name, { required });
41+
if (value === '') {
42+
return false;
43+
}
44+
// YAML 1.2 Core Schema boolean values + common string representations
45+
if (['true', 'True', 'TRUE', '1', 'yes', 'Yes', 'YES'].includes(value)) {
46+
return true;
47+
}
48+
if (['false', 'False', 'FALSE', '0', 'no', 'No', 'NO', ''].includes(value)) {
49+
return false;
50+
}
51+
throw new TypeError(
52+
`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
53+
`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``
54+
);
4055
}
4156

4257
/**

.github/actions/test-collector/dist/index.js

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- uses: gradle/actions/setup-gradle@v4
5858
with: { gradle-version: '${{ needs.quick-check.outputs.gradle-version }}', cache-read-only: true, cache-encryption-key: '${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}' }
5959
- uses: ./.github/actions/gradle-exec
60-
with: { tasks: '${{ matrix.tasks }}', max-workers: '2', timeout: '${{ matrix.timeout }}', continue-on-error: 'true' }
60+
with: { tasks: '${{ matrix.tasks }}', max-workers: '2', timeout: '${{ matrix.timeout }}', continue-on-error: true }
6161
- if: always()
6262
uses: ./.github/actions/test-collector
6363
with: { group-name: '${{ matrix.group }}', modules: '${{ matrix.tasks }}', testcontainers: '${{ matrix.tc }}' }

0 commit comments

Comments
 (0)