Skip to content

Commit

Permalink
DEVX-1278
Browse files Browse the repository at this point in the history
add set-safe-directory config to meet requirement for last  change plugin
  • Loading branch information
sheaphillips committed Mar 13, 2024
1 parent 161f44a commit f869380
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
set-safe-directory: 'true'
- name: Build TechDocs
uses: bcgov/devhub-techdocs-publish@stable
id: build_and_publish
Expand Down
11 changes: 11 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ export AWS_REGION="$INPUT_S3_REGION"

ENTITY_PATH="$ENTITY_NAMESPACE/$ENTITY_KIND/$ENTITY_NAME"

echo "Setting git configuration..."
git config --global --add safe.directory ./docs

# when running within an Action this won't exist, but it may when testing locally
if [ ! -d "./site" ]; then
echo "Creating ./site directory."
mkdir site
fi

git config --global --add safe.directory ./site

echo "Building TechDocs from Markdown for entity '$ENTITY_NAMESPACE/$ENTITY_KIND/$ENTITY_NAME'"
techdocs-cli build --verbose --no-docker

Expand Down

0 comments on commit f869380

Please sign in to comment.