2021-10-16 02:09:51 +08:00
|
|
|
name: Test different action inputs
|
|
|
|
|
|
|
|
on:
|
2022-05-28 22:55:58 +08:00
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
cache-key-prefix:
|
|
|
|
type: string
|
2022-05-30 02:13:55 +08:00
|
|
|
runner-os:
|
|
|
|
type: string
|
|
|
|
default: '["ubuntu-latest"]'
|
2021-10-16 02:09:51 +08:00
|
|
|
|
|
|
|
env:
|
2022-05-28 22:55:58 +08:00
|
|
|
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: action-inputs-${{ inputs.cache-key-prefix }}
|
|
|
|
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
|
2021-10-16 02:09:51 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
action-inputs:
|
2021-10-22 02:08:17 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-05-30 02:13:55 +08:00
|
|
|
os: ${{fromJSON(inputs.runner-os)}}
|
2021-10-22 02:08:17 +08:00
|
|
|
runs-on: ${{ matrix.os }}
|
2021-10-16 02:09:51 +08:00
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Invoke with multi-line arguments
|
|
|
|
uses: ./
|
|
|
|
with:
|
2022-04-05 23:45:02 +08:00
|
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
2021-10-16 02:09:51 +08:00
|
|
|
arguments: |
|
|
|
|
--configuration-cache
|
|
|
|
--build-cache
|
2021-10-16 02:24:41 +08:00
|
|
|
-DsystemProperty=FOO
|
|
|
|
-PgradleProperty=BAR
|
2021-10-16 02:09:51 +08:00
|
|
|
test
|
|
|
|
jar
|