mirror of
https://github.com/docker/bake-action.git
synced 2026-01-22 20:32:21 +01:00
list-targets: check targets are set
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
36
.github/workflows/ci-subaction.yml
vendored
36
.github/workflows/ci-subaction.yml
vendored
@@ -38,9 +38,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
workdir: ./test/group
|
workdir: ./test/group
|
||||||
-
|
-
|
||||||
name: Show targets
|
name: Check targets
|
||||||
run: |
|
uses: actions/github-script@v7
|
||||||
echo targets=${{ steps.gen.outputs.targets }}
|
with:
|
||||||
|
script: |
|
||||||
|
const targets = `${{ steps.gen.outputs.targets }}`;
|
||||||
|
if (!targets) {
|
||||||
|
core.setFailed('No targets generated');
|
||||||
|
}
|
||||||
|
core.info(`targets=${targets}`);
|
||||||
|
|
||||||
list-targets-group-matrix:
|
list-targets-group-matrix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -56,9 +62,15 @@ jobs:
|
|||||||
workdir: ./test/group-matrix
|
workdir: ./test/group-matrix
|
||||||
target: validate
|
target: validate
|
||||||
-
|
-
|
||||||
name: Show targets
|
name: Check targets
|
||||||
run: |
|
uses: actions/github-script@v7
|
||||||
echo targets=${{ steps.gen.outputs.targets }}
|
with:
|
||||||
|
script: |
|
||||||
|
const targets = `${{ steps.gen.outputs.targets }}`;
|
||||||
|
if (!targets) {
|
||||||
|
core.setFailed('No targets generated');
|
||||||
|
}
|
||||||
|
core.info(`targets=${targets}`);
|
||||||
|
|
||||||
list-targets-multi-files:
|
list-targets-multi-files:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -76,6 +88,12 @@ jobs:
|
|||||||
docker-bake.json
|
docker-bake.json
|
||||||
docker-bake.hcl
|
docker-bake.hcl
|
||||||
-
|
-
|
||||||
name: Show targets
|
name: Check targets
|
||||||
run: |
|
uses: actions/github-script@v7
|
||||||
echo targets=${{ steps.gen.outputs.targets }}
|
with:
|
||||||
|
script: |
|
||||||
|
const targets = `${{ steps.gen.outputs.targets }}`;
|
||||||
|
if (!targets) {
|
||||||
|
core.setFailed('No targets generated');
|
||||||
|
}
|
||||||
|
core.info(`targets=${targets}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user