mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Fix ownership of repository to avoid failure because of "fatal: detected dubious ownership in repository at '/__w/FTL/FTL'" even though "set-safe-directory: true" is set in the Github checkout action
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -69,16 +69,8 @@ jobs:
|
||||
echo ::set-output name=GIT_TAG::${GIT_TAG}
|
||||
echo ::set-output name=OUTPUT_DIR::${GIT_TAG:-${GIT_BRANCH}}
|
||||
-
|
||||
name: "Print environment details"
|
||||
env:
|
||||
GIT_BRANCH: ${{ steps.variables.outputs.GIT_BRANCH }}
|
||||
GIT_TAG: ${{ steps.variables.outputs.GIT_TAG }}
|
||||
run: |
|
||||
printenv
|
||||
find . ! -user root -exec ls -lh {} \;
|
||||
chown -R root .
|
||||
git --no-pager describe --always --dirty
|
||||
git log -1 --format='%h'
|
||||
name: "Fix ownership of repository"
|
||||
run: chown -R root .
|
||||
-
|
||||
name: "Build"
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user