From c17250cc28bb1e771608f7add0280a7f3606ed7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= Date: Wed, 21 Feb 2024 22:49:41 +0100 Subject: [PATCH] Use checkout action settings to set safe directory --- .github/workflows/linux_build_flatpak.yml | 1 + .github/workflows/scripts/linux/generate-metainfo.sh | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/linux_build_flatpak.yml b/.github/workflows/linux_build_flatpak.yml index 7f980ffe5dd666..2c3c860a00af58 100644 --- a/.github/workflows/linux_build_flatpak.yml +++ b/.github/workflows/linux_build_flatpak.yml @@ -58,6 +58,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + set-safe-directory: ${{ env.GITHUB_WORKSPACE }} # Hackity hack. When running the workflow on a schedule, we don't have the tag, # it doesn't fetch tags, therefore we don't get a version. So grab them manually. diff --git a/.github/workflows/scripts/linux/generate-metainfo.sh b/.github/workflows/scripts/linux/generate-metainfo.sh index ee263c05eb3a8c..33b8f42359e6f4 100755 --- a/.github/workflows/scripts/linux/generate-metainfo.sh +++ b/.github/workflows/scripts/linux/generate-metainfo.sh @@ -7,8 +7,6 @@ if [[ $# -lt 1 ]]; then exit 1 fi -git config --global --add safe.directory /__w/pcsx2/pcsx2 - OUTFILE=$1 GIT_DATE=$(git log -1 --pretty=%cd --date=iso8601) GIT_VERSION=$(git tag --points-at HEAD)