Skip to content

Commit ba4597a

Browse files
committed
Fix api_version passing
Signed-off-by: Martin Baillie <martin@baillie.id>
1 parent a761890 commit ba4597a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ jobs:
1717
go-version-file: 'go.mod'
1818
- name: Describe plugin
1919
id: plugin_describe
20-
run: echo "name=api_version::$(go run . describe | jq -r '.api_version')" >> $GITHUB_OUTPUT
20+
run: |
21+
set -e
22+
API_VERSION=$(go run . describe | jq -r '.api_version')
23+
echo "API_VERSION=$API_VERSION" >> "$GITHUB_ENV"
2124
- name: Run GoReleaser
2225
uses: goreleaser/goreleaser-action@v6
2326
with:
2427
version: latest
2528
args: release --clean
2629
env:
2730
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
API_VERSION: ${{ steps.plugin_describe.outputs.api_version }}

0 commit comments

Comments
 (0)