fix(ci): match unversioned DMG names in Homebrew tap workflow

The Update Homebrew Tap workflow downloaded the macOS release assets
with the patterns Recordly-*-arm64.dmg and Recordly-*-x64.dmg, which
assume a version segment in the filename.

electron-builder.json5 sets artifactName to "${productName}-${arch}.${ext}",
so the published assets are Recordly-arm64.dmg and Recordly-x64.dmg. The
wildcard requires a hyphen on both sides, so the patterns never matched
and "gh release download" exited with "no assets match the file pattern",
failing the job at the download step on every run.

Use the exact names the release publishes, matching the convention
already used in scripts/verify-macos-distribution.mjs.
This commit is contained in:
Mohd Sahil
2026-09-18 01:02:53 +05:30
parent b3ea7754c9
commit fb5a7664af
+4 -4
View File
@@ -54,16 +54,16 @@ jobs:
gh release download "${{ steps.tag.outputs.tag }}" \
--repo "${{ github.repository }}" \
--dir /tmp/recordly-release \
--pattern "Recordly-*-arm64.dmg" \
--pattern "Recordly-*-x64.dmg"
--pattern "Recordly-arm64.dmg" \
--pattern "Recordly-x64.dmg"
- name: Compute checksums
id: sha
shell: bash
run: |
set -euo pipefail
ARM_FILE=$(find /tmp/recordly-release -maxdepth 1 -name 'Recordly-*-arm64.dmg' | head -n 1)
INTEL_FILE=$(find /tmp/recordly-release -maxdepth 1 -name 'Recordly-*-x64.dmg' | head -n 1)
ARM_FILE=$(find /tmp/recordly-release -maxdepth 1 -name 'Recordly-arm64.dmg' | head -n 1)
INTEL_FILE=$(find /tmp/recordly-release -maxdepth 1 -name 'Recordly-x64.dmg' | head -n 1)
if [ -z "$ARM_FILE" ] || [ -z "$INTEL_FILE" ]; then
echo "Unable to locate macOS release artifacts for ${{ steps.tag.outputs.tag }}"