Skip to content

Commit

Permalink
ci: Trying a different method to reset permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Erickson <[email protected]>
  • Loading branch information
vonericsen committed Oct 15, 2024
1 parent 50b0be8 commit 313e678
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..
Expand Down

0 comments on commit 313e678

Please sign in to comment.