Skip to content

Commit

Permalink
Merge pull request #257 from crazy-max/list-targets-check
Browse files Browse the repository at this point in the history
list-targets: check targets are set
  • Loading branch information
crazy-max authored Oct 8, 2024
2 parents 51e939b + 782be98 commit d38ec1b
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/ci-subaction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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}`);

0 comments on commit d38ec1b

Please sign in to comment.