Skip to content

Commit a94af38

Browse files
[skip-release] Make Homebrew recovery source explicit (#40)
Co-authored-by: Joe Corall <joe@libops.io>
1 parent d262ce8 commit a94af38

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/release-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,16 @@ jobs:
6363
echo "Only the reviewed brews deprecation is allowed" >&2
6464
exit 1
6565
fi
66+
67+
- name: Verify recovery-safe Homebrew source URL
68+
shell: bash
69+
env:
70+
EXPECTED_BREW_URL: ' url_template: "https://github.com/${{ github.repository }}/releases/download/{{ .Tag }}/{{ .ArtifactName }}"'
71+
run: |
72+
set -euo pipefail
73+
74+
matches="$(grep -Fxc "$EXPECTED_BREW_URL" .goreleaser.yaml || true)"
75+
if [[ "$matches" -ne 1 ]]; then
76+
echo "Expected exactly one recovery-safe Homebrew url_template" >&2
77+
exit 1
78+
fi

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ brews:
4545
- name: sitectl-drupal
4646
description: "A sitectl plugin for Drupal websites"
4747
homepage: "https://github.com/libops/sitectl-drupal"
48+
url_template: "https://github.com/libops/sitectl-drupal/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
4849
license: MIT
4950
commit_author:
5051
name: sitectl-dev[bot]

0 commit comments

Comments
 (0)