1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 23:55:13 -05:00

Use short sha

This commit is contained in:
Jon Beniston 2024-11-01 21:33:38 +00:00
parent 4f36b21d2e
commit 763438c7e5

View File

@ -49,7 +49,7 @@ jobs:
id: get_version id: get_version
run: | run: |
if [[ "${{github.ref_name}}" == "mac_ci" ]]; then if [[ "${{github.ref_name}}" == "mac_ci" ]]; then
echo "version=${{github.sha}}" >> $GITHUB_OUTPUT echo "version=$(echo ${{github.sha}} | cut -c1-7)" >> $GITHUB_OUTPUT
else else
echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT
fi fi
@ -108,7 +108,7 @@ jobs:
id: get_version id: get_version
run: | run: |
if [[ "${{github.ref_name}}" == "mac_ci" ]]; then if [[ "${{github.ref_name}}" == "mac_ci" ]]; then
echo "version=${{github.sha}}" >> $GITHUB_OUTPUT echo "version=$(echo ${{github.sha}} | cut -c1-7)" >> $GITHUB_OUTPUT
else else
echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT
fi fi