Skip to content

Commit

Permalink
fix release of the HC Vault releaser to properly get version from the…
Browse files Browse the repository at this point in the history
… tag in GHA (#249)
  • Loading branch information
maksimu authored Apr 1, 2022
1 parent 345b181 commit 4934680
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.hashicorpvault.plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
- name: Create binaries
run: | # initially `github.ref` == "ref/tags/vault-plugin-secrets-ksm/vX.Y.Z"
PLUGIN_NAME="$(cut -d'/' -f3 <<<${{ github.ref }})"
PLUGIN_VERSION=${"$(cut -d'/' -f4 <<<${{ github.ref }})":1}
PLUGIN_VERSION="$(cut -d'/' -f4 <<<${{ github.ref }})"
echo "Plugin name: [${PLUGIN_NAME}]"
echo "Plugin version: [${PLUGIN_VERSION}]"
make release-all PLUGIN_NAME="${PLUGIN_NAME}" PLUGIN_VERSION="${PLUGIN_VERSION}"
echo "Plugin version: [${PLUGIN_VERSION:1}]"
make release-all PLUGIN_NAME="${PLUGIN_NAME}" PLUGIN_VERSION="${PLUGIN_VERSION:1}"
- name: "Info: List created files"
run: |
Expand Down

0 comments on commit 4934680

Please sign in to comment.