-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,26 +6,21 @@ on: | |
- '*' | ||
|
||
workflow_dispatch: | ||
inputs: | ||
package_version: | ||
description: "Version of the package to fetch" | ||
required: false | ||
default: "" | ||
|
||
jobs: | ||
go-get: | ||
name: Install Go Package with Released Version | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Get Version | ||
uses: battila7/get-version-action@v2.2.1 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
- name: Fetch Go Package Info | ||
uses: fjogeleit/[email protected] | ||
with: | ||
go-version: 1.21.5 | ||
url: "https://proxy.golang.org/github.com/i5heu/ouroborosdb/@latest" | ||
|
||
- name: Get Newest Tag | ||
run: | | ||
GOPROXY=https://proxy.golang.org GO111MODULE=on go list -m github.com/i5heu/ouroboros-db@`echo $(git describe --tags --abbrev=0)` | ||
- name: Send Another HTTP Request | ||
uses: fjogeleit/[email protected] | ||
with: | ||
url: "https://proxy.golang.org/github.com/i5heu/ouroboros-db/@v/v{{ steps.get-version.outputs.version }}.info" |