Merge branch 'main' of github.com:steveyegge/beads
This commit is contained in:
14
.github/workflows/update-homebrew.yml
vendored
14
.github/workflows/update-homebrew.yml
vendored
@@ -3,6 +3,11 @@ name: Update Homebrew Formula
|
|||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: 'Release tag (e.g., v0.22.0)'
|
||||||
|
required: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -19,8 +24,13 @@ jobs:
|
|||||||
- name: Get release info
|
- name: Get release info
|
||||||
id: release
|
id: release
|
||||||
run: |
|
run: |
|
||||||
echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||||
echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
TAG="${{ github.event.inputs.tag }}"
|
||||||
|
else
|
||||||
|
TAG="${GITHUB_REF#refs/tags/}"
|
||||||
|
fi
|
||||||
|
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||||
|
echo "version=${TAG#v}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Download checksums
|
- name: Download checksums
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user