Skip to content

Commit

Permalink
Check if .nextcloudignore is available
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdicloud committed Aug 9, 2023
1 parent cfba932 commit 442fcb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/nmc-app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ jobs:
${{ env.CUSTOM_SERVER_EXCLUDES }}
${{ env.CUSTOM_TEST_EXCLUDES }}
run: |
git ls-files -z --ignored --exclude-per-directory=./.nextcloudignore --cached | xargs -0 git rm -f
if [ -f "./.nextcloudignore" ]; then
git ls-files -z --ignored --exclude-per-directory=./.nextcloudignore --cached | xargs -0 git rm -f
fi
echo -e "$CUSTOM_EXCLUDES" > ${RUNNER_TEMP}/.distignore
set -x
git ls-files -z --ignored --exclude-per-directory=${RUNNER_TEMP}/.distignore --cached | xargs -0 git rm -f
Expand Down

0 comments on commit 442fcb4

Please sign in to comment.