Skip to content

Commit

Permalink
commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
eemmiillyy committed Jul 23, 2024
1 parent 45bbb57 commit d527b07
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-cli-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ jobs:
ls -l
VER="${{steps.capture-version.outputs.version}}"
echo $VER
COM="${{inputs.commitSha}} | head -c8"
COMMITSHA="${{inputs.commitSha}}"
COM="$(echo $COMMITSHA | head -c8)"
echo $COM
echo "sha-macos-arm=$(sh -c 'shasum < "$1" | cut -d" " -f1' -- xata-v${VER}-${COM}-darwin-arm64.tar.xz)" >> "$GITHUB_OUTPUT"
echo "sha-macos-intel=$(sh -c 'shasum < "$1" | cut -d" " -f1' -- xata-v${VER}-${COM}-darwin-x64.tar.xz)" >> "$GITHUB_OUTPUT"
Expand All @@ -167,7 +168,8 @@ jobs:
ls -l
VER="${{steps.capture-version.outputs.version}}"
echo $VER
COM="${{inputs.commitSha}} | head -c8"
COMMITSHA="${{inputs.commitSha}}"
COM="$(echo $COMMITSHA | head -c8)"
echo $COM
echo "sha-linux=$(sha256sum xata-v${VER}-${COM}-linux-arm.tar.xz)" >> "$GITHUB_OUTPUT"
echo "sha-linux-arm=$(sha256sum xata-v${VER}-${COM}-linux-arm64.tar.xz)" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit d527b07

Please sign in to comment.