Skip to content

Commit

Permalink
Update version-index.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
i5heu authored May 8, 2024
1 parent c7928c8 commit b1364ea
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/version-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b1364ea

Please sign in to comment.