Skip to content

Commit

Permalink
fix build-manifest scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Apr 15, 2024
1 parent e108c01 commit 847d8ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
- name: Get version from tag
id: get-version
run: |
echo "tagged_version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
if [[ "$GITHUB_REF_TYPE" == 'tag' ]]; then
echo "tagged_version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
else
echo "tagged_version=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
fi
shell: bash

- name: Extract metadata (tags, labels) for Docker
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-manifest.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -evo pipefail

REF="${$(git rev-parse --short HEAD)#refs/heads/}"
REF="$(git rev-parse --short HEAD)"
VERSION=${VERSION:-$REF}
BUILD_DIR=/tmp/ndc-stripe
ROOT="$(pwd)"
Expand Down

0 comments on commit 847d8ed

Please sign in to comment.