Skip to content

Commit a719d1a

Browse files
committed
temporarily use inline bootstrap
1 parent 5d26583 commit a719d1a

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.github/workflows/preview-build.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,40 @@ jobs:
178178
esac
179179
180180
- name: Bootstrap Action Workspace
181-
if: env.MATCH == 'true' && (github.repository == 'elastic/docs-builder' && steps.deployment.outputs.result)
181+
if: |
182+
'1' == '0' && env.MATCH == 'true' && (github.repository == 'elastic/docs-builder' && steps.deployment.outputs.result)
182183
uses: elastic/docs-builder/.github/actions/bootstrap@main
183184

185+
## BEGIN TEMPORARY USE THIS AND REVERT BACK TO OUR BOOTSTRAP ACTION ONCE THIS IS MERGED
186+
- shell: bash
187+
if: env.MATCH == 'true' && (github.repository == 'elastic/docs-builder' && steps.deployment.outputs.result)
188+
run: |
189+
git fetch --prune --unshallow --tags
190+
git tag --list
191+
- uses: actions/setup-dotnet@v4
192+
if: env.MATCH == 'true' && (github.repository == 'elastic/docs-builder' && steps.deployment.outputs.result)
193+
with:
194+
global-json-file: global.json
195+
196+
- id: dotnet
197+
if: env.MATCH == 'true' && (github.repository == 'elastic/docs-builder' && steps.deployment.outputs.result)
198+
shell: bash
199+
run: |
200+
dotnet tool restore
201+
REPO_VERSION=$(dotnet minver -t=v -p=canary.0 -v=e -m=0.1)
202+
echo "Version Number: ${REPO_VERSION}"
203+
echo "REPO_VERSION=${REPO_VERSION}" >> $GITHUB_ENV
204+
echo "full-version=${REPO_VERSION}" >> $GITHUB_OUTPUT
205+
echo "major-version=$(echo ${REPO_VERSION} | cut -d"." -f1)" >> $GITHUB_OUTPUT
206+
207+
- uses: actions/setup-node@v4
208+
if: env.MATCH == 'true' && (github.repository == 'elastic/docs-builder' && steps.deployment.outputs.result)
209+
with:
210+
cache: npm
211+
cache-dependency-path: src/Elastic.Documentation.Site/package-lock.json
212+
node-version-file: .nvmrc
213+
## END TEMPORARY USE THIS AND REVERT BACK TO OUR BOOTSTRAP ACTION ONCE THIS IS MERGED
214+
184215
# we run our artifact directly, please use the prebuild
185216
# elastic/docs-builder@main GitHub Action for all other repositories!
186217
- name: Build documentation

0 commit comments

Comments
 (0)