Skip to content

Commit

Permalink
ci: fix missing tag name in release draft (#1118)
Browse files Browse the repository at this point in the history
ci: Fix missing tag name in release draft

The `env` context does not contain all environment variables but just
those that were explicitly set by writing to `$GITHUB_ENV` or through
the `env` property of the step/job. Since that is not the case here, the
variable is empty.

This switches over to using `${{ github.ref_name }}`.
  • Loading branch information
zerok authored Aug 1, 2024
1 parent 80ffbfd commit 1da974d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
with:
body: |
This is release `${{ env.GITHUB_REF_NAME }}` of Tanka (`tk`).
This is release `${{ github.ref_name }}` of Tanka (`tk`).
## Install instructions
#### Binary:
```bash
# download the binary (adapt os and arch as needed)
$ curl -fSL -o "/usr/local/bin/tk" "https://github.com/grafana/tanka/releases/download/${{ env.GITHUB_REF_NAME }}/tk-linux-amd64"
$ curl -fSL -o "/usr/local/bin/tk" "https://github.com/grafana/tanka/releases/download/${{ github.ref_name }}/tk-linux-amd64"
# make it executable
$ chmod a+x "/usr/local/bin/tk"
Expand Down

0 comments on commit 1da974d

Please sign in to comment.