Skip to content

Commit

Permalink
Fix api_version passing
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Baillie <[email protected]>
  • Loading branch information
martinbaillie committed Aug 3, 2024
1 parent a761890 commit ba4597a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ jobs:
go-version-file: 'go.mod'
- name: Describe plugin
id: plugin_describe
run: echo "name=api_version::$(go run . describe | jq -r '.api_version')" >> $GITHUB_OUTPUT
run: |
set -e
API_VERSION=$(go run . describe | jq -r '.api_version')
echo "API_VERSION=$API_VERSION" >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
API_VERSION: ${{ steps.plugin_describe.outputs.api_version }}

0 comments on commit ba4597a

Please sign in to comment.