mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 06:46:09 +00:00
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:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user