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 1f2abaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 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 Expand Up @@ -91,6 +92,7 @@ jobs:
- name: Generate AppStream XML
run: |
git config --global --add safe.directory /__w/pcsx2/pcsx2
./.github/workflows/scripts/linux/generate-metainfo.sh .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.metainfo.xml
cat .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.metainfo.xml
flatpak-builder-lint appstream .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.metainfo.xml
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 1f2abaa

Please sign in to comment.