Skip to content

Commit

Permalink
Fix env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cbertinato committed Mar 9, 2024
1 parent 8b9ce68 commit 6745a72
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,22 @@ on:
description: "Whether to create release"
required: false
default: false
golang_version:
description: "Golang version to use for building"
required: false
default: "1.22"
tag_name:
description: "Tag name to use for release"
required: true

env:
GOLANG_VERSION: "1.22"
GOLANG_VERSION: ${{ github.event.inputs.golang_version || '1.22' }}
PLUGIN_NAME: "honeycomb-metric-plugin"
TAG_NAME: ${{ github.event.inputs.tag_name || github.event.ref_name }}

jobs:
release-creation:
name: Automatic release creation triggered on ${{ github.ref_name }}
name: Automatic release creation
runs-on: ubuntu-latest
env:
# Whether to create release
Expand All @@ -43,15 +48,17 @@ jobs:
- name: Get current tag annotation
id: tag-data
uses: ericcornelissen/git-tag-annotation-action@v2
with:
tag: ${{ env.TAG_NAME }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
tag_name: ${{ env.TAG_NAME }}
release_name: Release ${{ env.TAG_NAME }}
body: ${{ steps.tag-data.outputs.git-tag-annotation }}
draft: ${{ env.IS_DRAFT_RELEASE }}
prerelease: false
Expand Down

0 comments on commit 6745a72

Please sign in to comment.