diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index b04d807..7c00044 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -326,8 +326,9 @@ jobs: version=$(printf "%s-dev" $(date +'%y.%m.%d')) fi #Change ownership back before running deb/rpm creation - CURRENT_UID=$(id -u) - CURRENT_GID=$(id -g) + CURRENT_USER=$(whoami) + CURRENT_UID=$(getent passwd "$CURRENT_USER" | cut -d: -f3) + CURRENT_GID=$(getent passwd "$CURRENT_USER" | cut -d: -f4) sudo chown -R $CURRENT_UID:$CURRENT_GID build sed -i '/version:/ s/"[^"][^"]*"/"'"$version"'"/' ../../nfpm.yaml nfpm package -f ../../nfpm.yaml -p deb -t ..