diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 968d371c5..df580c66d 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -49,7 +49,7 @@ jobs: id: get_version run: | if [[ "${{github.ref_name}}" == "mac_ci" ]]; then - echo "version=${{github.sha}}" >> $GITHUB_OUTPUT + echo "version=$(echo ${{github.sha}} | cut -c1-7)" >> $GITHUB_OUTPUT else echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT fi @@ -108,7 +108,7 @@ jobs: id: get_version run: | if [[ "${{github.ref_name}}" == "mac_ci" ]]; then - echo "version=${{github.sha}}" >> $GITHUB_OUTPUT + echo "version=$(echo ${{github.sha}} | cut -c1-7)" >> $GITHUB_OUTPUT else echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT fi