fix(workflows/update-casks): take two on trying to prevent non-JSON output from brew livecheck

This commit is contained in:
2025-11-09 01:06:31 +00:00
parent f525225e3d
commit 5afad25ef1

View File

@@ -72,16 +72,18 @@ jobs:
mkdir -p "$(brew --repo)/Library/Taps/jimeh" mkdir -p "$(brew --repo)/Library/Taps/jimeh"
cp -av "${{ github.workspace }}/tap" \ cp -av "${{ github.workspace }}/tap" \
"$(brew --repo)/Library/Taps/jimeh/homebrew-emacs-builds" "$(brew --repo)/Library/Taps/jimeh/homebrew-emacs-builds"
- name: Run brew update
run: brew update
- name: brew livecheck (all casks) - name: brew livecheck (all casks)
if: ${{ github.event.inputs.cask == '' }} if: ${{ github.event.inputs.cask == '' }}
run: >- run: >-
brew livecheck --json --quiet --tap jimeh/emacs-builds 2>/dev/null brew livecheck --json --quiet --tap jimeh/emacs-builds
| tee livecheck-results.json | tee livecheck-results.json
- name: brew livecheck (specific cask) - name: brew livecheck (specific cask)
if: ${{ github.event.inputs.cask != '' }} if: ${{ github.event.inputs.cask != '' }}
run: >- run: >-
brew livecheck --json --quiet brew livecheck --json --quiet
jimeh/emacs-builds/${{ github.event.inputs.cask }} 2>/dev/null jimeh/emacs-builds/${{ github.event.inputs.cask }}
| tee livecheck-results.json | tee livecheck-results.json
- name: Upload livecheck-results.json artifact - name: Upload livecheck-results.json artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4