From 552e6960a64d1945e8bda07a82f190443b6f5e48 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Mon, 23 Dec 2024 15:53:11 -0500 Subject: [PATCH] check for existence --- .github/workflows/comment-command.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/comment-command.yml b/.github/workflows/comment-command.yml index 0485ddbd9cb..b183b3c3518 100644 --- a/.github/workflows/comment-command.yml +++ b/.github/workflows/comment-command.yml @@ -42,8 +42,10 @@ jobs: - name: Check found artifacts id: check-found-artifacts run: | - echo "found-artifacts=${{ contains(fromJSON(steps.fetch-patches.outputs.artifacts).*.name, 'javaformat fixes') - && contains(fromJSON(steps.fetch-patches.outputs.artifacts).*.name, 'wpiformat fixes') }}" >> "$GITHUB_OUTPUT" + echo "found-artifacts=${{ steps.fetch-pathces.outputs.artifacts && + contains(fromJSON(steps.fetch-patches.outputs.artifacts).*.name, 'javaformat fixes') && + contains(fromJSON(steps.fetch-patches.outputs.artifacts).*.name, 'wpiformat fixes') }}" + >> "$GITHUB_OUTPUT" - name: Apply patch if: ${{ steps.check-found-artifacts.outputs.found-artifacts }} run: |