Skip to content

Commit 5d8ef09

Browse files
committed
snap: normalize snap artifact path
1 parent 36b2d30 commit 5d8ef09

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/actions/build-snap/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ runs:
9191
exit 1
9292
fi
9393
94+
PROJECT_ROOT="$(realpath "${PROJECT_ROOT}")"
95+
9496
cd "${PROJECT_ROOT}"
9597
9698
IMAGE_INFO="{\"build_url\":\"https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}\"}"
@@ -141,6 +143,8 @@ runs:
141143
*) PROJECT_ROOT="${GITHUB_WORKSPACE}/${INPUT_PATH}" ;;
142144
esac
143145
146+
PROJECT_ROOT="$(realpath "${PROJECT_ROOT}")"
147+
144148
mapfile -t snaps < <(find "${PROJECT_ROOT}" -maxdepth 1 -type f -name '*.snap' -print | sort)
145149
146150
if [ "${#snaps[@]}" -eq 0 ]; then

0 commit comments

Comments
 (0)