From f06ec3b4a189d0ed5241b0cfe9c306c836c7b335 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 30 Oct 2024 08:47:30 +0100 Subject: [PATCH] ci: use list-targets subaction Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/validate.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index e7f23fe..5910c89 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -17,16 +17,17 @@ jobs: prepare: runs-on: ubuntu-20.04 outputs: - targets: ${{ steps.targets.outputs.matrix }} + targets: ${{ steps.generate.outputs.targets }} steps: - name: Checkout uses: actions/checkout@v4 - - name: Matrix - id: targets - run: | - echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT + name: List targets + id: generate + uses: docker/bake-action/subaction/list-targets@v5 + with: + target: validate validate: runs-on: ubuntu-latest