mirror of
https://github.com/docker/bake-action.git
synced 2025-07-14 12:41:53 +02: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:
|
||||
workdir: ./test/group
|
||||
-
|
||||
name: Show targets
|
||||
run: |
|
||||
echo targets=${{ steps.gen.outputs.targets }}
|
||||
name: Check targets
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const targets = `${{ steps.gen.outputs.targets }}`;
|
||||
if (!targets) {
|
||||
core.setFailed('No targets generated');
|
||||
}
|
||||
core.info(`targets=${targets}`);
|
||||
|
||||
list-targets-group-matrix:
|
||||
runs-on: ubuntu-latest
|
||||
@ -56,9 +62,15 @@ jobs:
|
||||
workdir: ./test/group-matrix
|
||||
target: validate
|
||||
-
|
||||
name: Show targets
|
||||
run: |
|
||||
echo targets=${{ steps.gen.outputs.targets }}
|
||||
name: Check targets
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const targets = `${{ steps.gen.outputs.targets }}`;
|
||||
if (!targets) {
|
||||
core.setFailed('No targets generated');
|
||||
}
|
||||
core.info(`targets=${targets}`);
|
||||
|
||||
list-targets-multi-files:
|
||||
runs-on: ubuntu-latest
|
||||
@ -76,6 +88,12 @@ jobs:
|
||||
docker-bake.json
|
||||
docker-bake.hcl
|
||||
-
|
||||
name: Show targets
|
||||
run: |
|
||||
echo targets=${{ steps.gen.outputs.targets }}
|
||||
name: Check targets
|
||||
uses: actions/github-script@v7
|
||||
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