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:
DL6ER
2022-07-25 18:01:42 +02:00
parent 7a61a7cd0e
commit 4788c09bce
+2 -10
View File
@@ -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: