Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/bootstrap/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ outputs:
runs:
using: "composite"
steps:
# Ensure we fetch all tags
# ensure we fetch all tags
- shell: bash
run: |
git fetch --prune --unshallow --tags
Expand Down
29 changes: 20 additions & 9 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ jobs:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
persist-credentials: false

- name: Free Disk Space
if: contains(fromJSON('["elastic/security-docs"]'), github.repository)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
with:
tool-cache: false

- name: Create Deployment
if: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) || (steps.check-files.outputs.any_modified == 'true' && startsWith(github.event_name, 'pull_request'))
uses: actions/github-script@v7
Expand Down Expand Up @@ -136,11 +130,28 @@ jobs:
;;
esac

- name: Bootstrap Action Workspace
- name: 'Bootstrap docs-builder repo only: git'
shell: bash
if: github.repository == 'elastic/docs-builder' && steps.deployment.outputs.result
run: |
git fetch --prune --unshallow --tags
git tag --list

- name: 'Bootstrap docs-builder repo only: dotnet'
uses: actions/setup-dotnet@v4
if: github.repository == 'elastic/docs-builder' && steps.deployment.outputs.result
uses: elastic/docs-builder/actions/bootstrap@main
with:
global-json-file: global.json

- name: 'Bootstrap docs-builder repo only: npm'
uses: actions/setup-node@v4
if: github.repository == 'elastic/docs-builder' && steps.deployment.outputs.result
with:
cache: npm
cache-dependency-path: src/Elastic.Markdown/package-lock.json
node-version-file: .nvmrc

# we run our artifact directly please use the prebuild
# we run our artifact directly please use the prebuild
# elastic/docs-builder@main GitHub Action for all other repositories!
- name: Build documentation
if: github.repository == 'elastic/docs-builder' && steps.deployment.outputs.result
Expand Down
Loading