Skip to content

Commit

Permalink
Fix releasing CI - ensure to use bash and make prepareSDK helper func…
Browse files Browse the repository at this point in the history
…tion sh compatible as fallback
  • Loading branch information
WojciechMazur committed Oct 17, 2024
1 parent d73efe3 commit eed30c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -767,14 +767,15 @@ jobs:
run : echo "RELEASE_TAG=${GITHUB_REF#*refs/tags/}" >> $GITHUB_ENV

- name: Prepare the SDKs
shell: bash
run : |
function prepareSDK() {
prepareSDK() {
distroSuffix="$1"
artifactId="$2"
artifactName="scala3-${{ env.RELEASE_TAG }}${distroSuffix}"
downloadedArchive="./artifact.zip"
if [[ -f "${downloadedArchive}" ]]; then
if [ -f "${downloadedArchive}" ]; then
rm "${downloadedArchive}"
fi
Expand All @@ -789,7 +790,7 @@ jobs:
# Repackage content of .zip to .tar.gz and prepare digest
tmpDir="./archive-tmp-dir"
if [[ -d "${tmpDir}" ]]; then
if [ -d "${tmpDir}" ]; then
rm -r "${tmpDir}"
fi
mkdir "${tmpDir}"
Expand Down

0 comments on commit eed30c3

Please sign in to comment.