Skip to content

Commit eed30c3

Browse files
committed
Fix releasing CI - ensure to use bash and make prepareSDK helper function sh compatible as fallback
1 parent d73efe3 commit eed30c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,14 +767,15 @@ jobs:
767767
run : echo "RELEASE_TAG=${GITHUB_REF#*refs/tags/}" >> $GITHUB_ENV
768768

769769
- name: Prepare the SDKs
770+
shell: bash
770771
run : |
771-
function prepareSDK() {
772+
prepareSDK() {
772773
distroSuffix="$1"
773774
artifactId="$2"
774775
artifactName="scala3-${{ env.RELEASE_TAG }}${distroSuffix}"
775776
776777
downloadedArchive="./artifact.zip"
777-
if [[ -f "${downloadedArchive}" ]]; then
778+
if [ -f "${downloadedArchive}" ]; then
778779
rm "${downloadedArchive}"
779780
fi
780781
@@ -789,7 +790,7 @@ jobs:
789790
790791
# Repackage content of .zip to .tar.gz and prepare digest
791792
tmpDir="./archive-tmp-dir"
792-
if [[ -d "${tmpDir}" ]]; then
793+
if [ -d "${tmpDir}" ]; then
793794
rm -r "${tmpDir}"
794795
fi
795796
mkdir "${tmpDir}"

0 commit comments

Comments
 (0)