chore: update workflows
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
name: Publish
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
workflow_call:
|
||||
inputs:
|
||||
version:
|
||||
description: "The version tag to publish (e.g., v1.0.0)"
|
||||
required: true
|
||||
type: string
|
||||
jobs:
|
||||
publish:
|
||||
name: Publish to Go Module Proxy
|
||||
@@ -11,7 +14,7 @@ jobs:
|
||||
- name: Request module from proxy
|
||||
run: |
|
||||
MODULE="github.com/StevanFreeborn/onspring-api-sdk-go"
|
||||
VERSION="${GITHUB_REF_NAME}"
|
||||
VERSION="${{ inputs.version }}"
|
||||
PROXY_URL="https://proxy.golang.org/${MODULE}/@v/${VERSION}.info"
|
||||
|
||||
echo "Requesting: $PROXY_URL"
|
||||
|
||||
Reference in New Issue
Block a user