Skip to content

Commit

Permalink
Use checkout action settings to set safe directory
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Feb 21, 2024
1 parent 0ab4055 commit c17250c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linux_build_flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/scripts/linux/generate-metainfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c17250c

Please sign in to comment.