Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ name: Release CLI
on:
push:
tags: ["v*"]
workflow_dispatch:
inputs:
tag:
description: "tag to (re)publish, e.g. v2.12.1"
required: true

permissions:
contents: read
Expand All @@ -18,7 +23,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
with:
fetch-depth: 0
ref: ${{ github.event.inputs.tag || github.ref_name }}
- uses: actions/setup-go@v5
with: { go-version-file: go.mod }
- uses: goreleaser/goreleaser-action@v6
Expand Down Expand Up @@ -55,4 +62,4 @@ jobs:
run: |
gh api "repos/${{ matrix.repo }}/dispatches" \
-f event_type=kit-released \
-F "client_payload[version]=${GITHUB_REF_NAME}"
-F "client_payload[version]=${{ github.event.inputs.tag || github.ref_name }}"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
# A PAT (contents:write + pull-requests:write on this repo) lets the
# action create the Version Packages PR even while the org forbids
# Actions-created PRs; falls back to the Actions token otherwise.
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.KIT_RELEASE_TOKEN || secrets.GITHUB_TOKEN }}
Loading