Skip to content

Commit

Permalink
check for existence
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Dec 23, 2024
1 parent 6612195 commit 552e696
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/comment-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 552e696

Please sign in to comment.