Skip to content

Commit 87098e5

Browse files
Merge branch 'main' into huy/2026/fd-135-cli-package-escape
2 parents 882a9a7 + 773caf5 commit 87098e5

514 files changed

Lines changed: 8123 additions & 5782 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.production

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# DO NOT add secrets here - this file is checked into git.
2+
# Production defaults for the shared navbar/footer integration.
3+
FOOTER_FRAGMENT_URL=https://octopus.com/fragments/footer
4+
SHARED_ASSETS_BASE_URL=https://octopus.com/octopus-public/assets
5+
SHARED_ASSETS_ORIGIN=https://octopus.com

.env.staging

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# DO NOT add secrets here - this file is checked into git.
2+
#
3+
# Defaults match production. Edit temporarily to point at staging URLs
4+
# (e.g. https://a.dev.octopus.com/...) when you want to preview upcoming
5+
# shared navbar/footer changes locally before they ship to prod.
6+
FOOTER_FRAGMENT_URL=https://octopus.com/fragments/footer
7+
SHARED_ASSETS_BASE_URL=https://octopus.com/octopus-public/assets
8+
SHARED_ASSETS_ORIGIN=https://octopus.com

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/versions.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NODE_VERSION=22
2+
PNPM_VERSION=10.13.1
Lines changed: 93 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,94 @@
1-
name: Markdown
2-
3-
on: pull_request
4-
5-
# Allow this job to clone the repo
6-
permissions:
7-
contents: read
8-
id-token: write
9-
10-
concurrency:
11-
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: true
13-
14-
jobs:
15-
lint:
16-
runs-on: ubuntu-latest
17-
strategy:
18-
fail-fast: true
19-
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0 # Fetch all history for comparison
25-
26-
- name: Get changed markdown files
27-
id: changed-files
28-
run: |
29-
# Fetch the base branch
30-
git fetch origin ${{ github.base_ref }}
31-
32-
# Get changed .md and .mdx files
33-
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }}...HEAD | grep -E '\.(md|mdx)$' || true)
34-
35-
# Store the files
36-
echo "files<<EOF" >> $GITHUB_OUTPUT
37-
echo "$CHANGED_FILES" >> $GITHUB_OUTPUT
38-
echo "EOF" >> $GITHUB_OUTPUT
39-
40-
# Count files
41-
if [ -z "$CHANGED_FILES" ]; then
42-
echo "count=0" >> $GITHUB_OUTPUT
43-
else
44-
echo "count=$(echo "$CHANGED_FILES" | wc -l)" >> $GITHUB_OUTPUT
45-
fi
46-
47-
- name: Install pnpm
48-
if: steps.changed-files.outputs.count > 0
49-
uses: pnpm/action-setup@v4
50-
with:
51-
version: 10.13.1
52-
run_install: false
53-
54-
- name: Setup Node
55-
if: steps.changed-files.outputs.count > 0
56-
uses: actions/setup-node@v4
57-
with:
58-
node-version: 20
59-
cache: 'pnpm'
60-
cache-dependency-path: 'pnpm-lock.yaml'
61-
62-
- name: Get pnpm store directory
63-
if: steps.changed-files.outputs.count > 0
64-
shell: bash
65-
run: |
66-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
67-
68-
- uses: actions/cache@v3
69-
if: steps.changed-files.outputs.count > 0
70-
name: Setup pnpm cache
71-
with:
72-
path: ${{ env.STORE_PATH }}
73-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
74-
restore-keys: |
75-
${{ runner.os }}-pnpm-store-
76-
77-
- name: PNPM install
78-
if: steps.changed-files.outputs.count > 0
79-
run: |
80-
echo; echo "cd to workspace"
81-
cd $GITHUB_WORKSPACE
82-
echo; echo "listing"
83-
ls
84-
echo; echo "PNPM install"
85-
pnpm install
86-
87-
- uses: DavidAnson/markdownlint-cli2-action@v22
88-
if: steps.changed-files.outputs.count > 0
89-
with:
90-
config: '.markdownlint.json'
1+
name: Markdown
2+
3+
on: pull_request
4+
5+
# Allow this job to clone the repo
6+
permissions:
7+
contents: read
8+
id-token: write
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
lint:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: true
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v7
23+
with:
24+
fetch-depth: 0 # Fetch all history for comparison
25+
26+
- name: Load versions
27+
run: cat .github/versions.env >> "$GITHUB_ENV"
28+
29+
- name: Get changed markdown files
30+
id: changed-files
31+
run: |
32+
# Fetch the base branch
33+
git fetch origin ${{ github.base_ref }}
34+
35+
# Get changed .md and .mdx files
36+
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }}...HEAD | grep -E '\.(md|mdx)$' || true)
37+
38+
# Store the files
39+
echo "files<<EOF" >> $GITHUB_OUTPUT
40+
echo "$CHANGED_FILES" >> $GITHUB_OUTPUT
41+
echo "EOF" >> $GITHUB_OUTPUT
42+
43+
# Count files
44+
if [ -z "$CHANGED_FILES" ]; then
45+
echo "count=0" >> $GITHUB_OUTPUT
46+
else
47+
echo "count=$(echo "$CHANGED_FILES" | wc -l)" >> $GITHUB_OUTPUT
48+
fi
49+
50+
- name: Install pnpm
51+
if: steps.changed-files.outputs.count > 0
52+
uses: pnpm/action-setup@v6
53+
with:
54+
version: ${{ env.PNPM_VERSION }}
55+
run_install: false
56+
57+
- name: Setup Node
58+
if: steps.changed-files.outputs.count > 0
59+
uses: actions/setup-node@v6
60+
with:
61+
node-version: ${{ env.NODE_VERSION }}
62+
cache: 'pnpm'
63+
cache-dependency-path: 'pnpm-lock.yaml'
64+
65+
- name: Get pnpm store directory
66+
if: steps.changed-files.outputs.count > 0
67+
shell: bash
68+
run: |
69+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
70+
71+
- uses: actions/cache@v6
72+
if: steps.changed-files.outputs.count > 0
73+
name: Setup pnpm cache
74+
with:
75+
path: ${{ env.STORE_PATH }}
76+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
77+
restore-keys: |
78+
${{ runner.os }}-pnpm-store-
79+
80+
- name: PNPM install
81+
if: steps.changed-files.outputs.count > 0
82+
run: |
83+
echo; echo "cd to workspace"
84+
cd $GITHUB_WORKSPACE
85+
echo; echo "listing"
86+
ls
87+
echo; echo "PNPM install"
88+
pnpm install
89+
90+
- uses: DavidAnson/markdownlint-cli2-action@v23
91+
if: steps.changed-files.outputs.count > 0
92+
with:
93+
config: '.markdownlint.json'
9194
globs: ${{ steps.changed-files.outputs.files }}
Lines changed: 64 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,64 @@
1-
name: Spellcheck
2-
3-
on: pull_request
4-
5-
# Allow this job to clone the repo
6-
permissions:
7-
contents: read
8-
id-token: write
9-
10-
concurrency:
11-
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: true
13-
14-
jobs:
15-
spellcheck:
16-
runs-on: ubuntu-latest
17-
strategy:
18-
fail-fast: true
19-
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v4
23-
24-
- name: Install pnpm
25-
uses: pnpm/action-setup@v4
26-
with:
27-
version: 10.13.1
28-
run_install: false
29-
30-
- name: Setup Node
31-
uses: actions/setup-node@v4
32-
with:
33-
node-version: 20
34-
cache: 'pnpm'
35-
cache-dependency-path: 'pnpm-lock.yaml'
36-
37-
- name: Get pnpm store directory
38-
shell: bash
39-
run: |
40-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
41-
42-
- uses: actions/cache@v3
43-
name: Setup pnpm cache
44-
with:
45-
path: ${{ env.STORE_PATH }}
46-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
47-
restore-keys: |
48-
${{ runner.os }}-pnpm-store-
49-
50-
- name: PNPM install
51-
run: |
52-
echo; echo "cd to workspace"
53-
cd $GITHUB_WORKSPACE
54-
echo; echo "listing"
55-
ls
56-
echo; echo "PNPM install"
57-
pnpm install
58-
59-
- name: Check spellings
60-
run: |
61-
pnpm spellcheck
1+
name: Spellcheck
2+
3+
on: pull_request
4+
5+
# Allow this job to clone the repo
6+
permissions:
7+
contents: read
8+
id-token: write
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
spellcheck:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: true
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v7
23+
24+
- name: Load versions
25+
run: cat .github/versions.env >> "$GITHUB_ENV"
26+
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v6
29+
with:
30+
version: ${{ env.PNPM_VERSION }}
31+
run_install: false
32+
33+
- name: Setup Node
34+
uses: actions/setup-node@v6
35+
with:
36+
node-version: ${{ env.NODE_VERSION }}
37+
cache: 'pnpm'
38+
cache-dependency-path: 'pnpm-lock.yaml'
39+
40+
- name: Get pnpm store directory
41+
shell: bash
42+
run: |
43+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
44+
45+
- uses: actions/cache@v6
46+
name: Setup pnpm cache
47+
with:
48+
path: ${{ env.STORE_PATH }}
49+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
50+
restore-keys: |
51+
${{ runner.os }}-pnpm-store-
52+
53+
- name: PNPM install
54+
run: |
55+
echo; echo "cd to workspace"
56+
cd $GITHUB_WORKSPACE
57+
echo; echo "listing"
58+
ls
59+
echo; echo "PNPM install"
60+
pnpm install
61+
62+
- name: Check spellings
63+
run: |
64+
pnpm spellcheck

.github/workflows/branch-validation-full.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
- main
88

99
jobs:
10+
1011
branch_validation:
1112
uses: OctopusDeploy/microsite-deployment/.github/workflows/microsite-deployment-branch.yml@main
1213
with:
1314
octopus_project_name: "Docs Microsite"
1415
package_id: "DocsMicrosite"
15-
node_version: '20'
16-
secrets: inherit
16+
secrets: inherit

0 commit comments

Comments
 (0)