diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1bd08b3..ae5c168 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,11 @@ name: Release on: workflow_dispatch: + inputs: + release_ref: + description: "Git ref to release, preferably a tag like v1.0.1" + required: true + type: string push: tags: - "v*" @@ -17,6 +22,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.release_ref || github.ref }} - name: Setup Go uses: actions/setup-go@v5