mirror of
https://github.com/Noratrieb/actions-playground.git
synced 2026-01-14 09:05:00 +01:00
use json method
This commit is contained in:
parent
b5cc58b901
commit
04cddf1043
2 changed files with 3 additions and 3 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -25,10 +25,10 @@ jobs:
|
||||||
build-services:
|
build-services:
|
||||||
needs: [install-build]
|
needs: [install-build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ needs.install-build.outputs.job-strategy-matrix != '[]' }}
|
if: ${{ needs.install-build.outputs.job-strategy-matrix != '[""]' }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
service: ${{ needs.install-build.outputs.job-strategy-matrix }}
|
service: ${{ fromJson(needs.install-build.outputs.job-strategy-matrix) }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,4 @@ Object.entries(serviceVersions).forEach(([name, version]) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`::set-output name=job-strategy-matrix::[${job_strategy_matrix.join(', ')}]`);
|
console.log(`::set-output name=job-strategy-matrix::["${job_strategy_matrix.join('", "')}"]`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue