Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
220 changes: 110 additions & 110 deletions .github/CODEOWNERS

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions .github/workflows/bump_private_action_runner_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
pull-requests: write # Action creates a PR.
runs-on: ubuntu-latest
name: Find latest private action runner version
env:
HUGO_ROOT: 'hugo/' # TODO: Remove once HUGO_DIR repo var is set; replace with ${{ vars.HUGO_DIR && format('{0}/', vars.HUGO_DIR) || '' }}
steps:
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
id: octo-sts
Expand All @@ -31,14 +33,14 @@ jobs:
- name: Find and write latest version
id: write-version
run: |
python local/bin/py/version_getter.py \
python ${HUGO_ROOT}local/bin/py/version_getter.py \
--url "https://api.datadoghq.com/api/v2/on-prem-management-service/runner/latest-image" \
--file-name "private_action_runner_version.json"

- name: Save modified file
run: |
mkdir -p $RUNNER_TEMP/temp
cp ./data/private_action_runner_version.json $RUNNER_TEMP/temp/
cp ./${HUGO_ROOT}data/private_action_runner_version.json $RUNNER_TEMP/temp/

- name: echo new version
run: echo ${{ steps.write-version.outputs.new_version }}
Expand All @@ -49,14 +51,14 @@ jobs:

- name: Restore modified file
run: |
cp $RUNNER_TEMP/temp/private_action_runner_version.json ./data/
cp $RUNNER_TEMP/temp/private_action_runner_version.json ./${HUGO_ROOT}data/

- name: Write version
if: steps.write-version.outputs.new_version == 'true'
run: |-
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add ./data/private_action_runner_version.json
git add ./${HUGO_ROOT}data/private_action_runner_version.json
git commit -m "(Automated) Bump private action runner version"
git push -f origin HEAD:refs/heads/automatic-version-update/private-action-runner

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/bump_synthetics_worker_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
pull-requests: write # Action creates a PR.
runs-on: ubuntu-latest
name: Find latest synthetics-worker version
env:
HUGO_ROOT: 'hugo/' # TODO: Remove once HUGO_DIR repo var is set; replace with ${{ vars.HUGO_DIR && format('{0}/', vars.HUGO_DIR) || '' }}
steps:
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
id: octo-sts
Expand All @@ -31,14 +33,14 @@ jobs:
- name: Find and write latest version
id: write-version
run: |
python local/bin/py/version_getter.py \
python ${HUGO_ROOT}local/bin/py/version_getter.py \
--url "https://ddsynthetics-windows.s3.amazonaws.com/installers.json" \
--file-name "synthetics_worker_versions.json"

- name: Save modified file
run: |
mkdir -p $RUNNER_TEMP/temp
cp ./data/synthetics_worker_versions.json $RUNNER_TEMP/temp/
cp ./${HUGO_ROOT}data/synthetics_worker_versions.json $RUNNER_TEMP/temp/

- name: echo new version
run: echo ${{ steps.write-version.outputs.new_version }}
Expand All @@ -49,14 +51,14 @@ jobs:

- name: Restore modified file
run: |
cp $RUNNER_TEMP/temp/synthetics_worker_versions.json ./data/
cp $RUNNER_TEMP/temp/synthetics_worker_versions.json ./${HUGO_ROOT}data/

- name: Write version
if: steps.write-version.outputs.new_version == 'true'
run: |-
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add ./data/synthetics_worker_versions.json
git add ./${HUGO_ROOT}data/synthetics_worker_versions.json
git commit -m "(Automated) Bump synthetic worker version"
git push -f origin HEAD:refs/heads/automatic-version-update/synthetics-worker

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/bump_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
id-token: write # Needed to federate tokens.

runs-on: ubuntu-latest
env:
HUGO_ROOT: 'hugo/' # TODO: Remove once HUGO_DIR repo var is set; replace with ${{ vars.HUGO_DIR && format('{0}/', vars.HUGO_DIR) || '' }}
steps:
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
id: octo-sts
Expand Down Expand Up @@ -49,9 +51,9 @@ jobs:
- name: Write version
id: write-version
run: |-
mkdir -p ./data
echo '${{steps.set-versions.outputs.result}}' > ./data/sdk_versions.json
git add ./data/sdk_versions.json
mkdir -p ./${HUGO_ROOT}data
echo '${{steps.set-versions.outputs.result}}' > ./${HUGO_ROOT}data/sdk_versions.json
git add ./${HUGO_ROOT}data/sdk_versions.json
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/preview_link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
paths:
- 'content/en/**.md'
- 'hugo/content/en/**.md'

permissions:
contents: read
Expand All @@ -17,6 +18,8 @@ jobs:
preview-link:
if: contains(github.head_ref, '/')
runs-on: ubuntu-latest
env:
HUGO_ROOT: 'hugo/' # TODO: Remove once HUGO_DIR repo var is set; replace with ${{ vars.HUGO_DIR && format('{0}/', vars.HUGO_DIR) || '' }}
steps:
- name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
Expand Down Expand Up @@ -64,7 +67,7 @@ jobs:
ADDED_FILES: ${{ steps.changed_files.outputs.added_files }}
id: comment_body
run: |
python local/bin/py/preview_links.py --deleted="${DELETED_FILES}" \
python ${HUGO_ROOT}local/bin/py/preview_links.py --deleted="${DELETED_FILES}" \
--renamed="${RENAMED_FILES}" \
--modified="${MODIFIED_FILES}" \
--added="${ADDED_FILES}"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/site_region_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
paths:
- 'content/en/**/*.md'
- 'hugo/content/en/**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
Expand All @@ -17,6 +18,8 @@ jobs:
check-site-region:
if: github.head_ref != 'guacbot/translation-pipeline'
runs-on: ubuntu-latest
env:
HUGO_ROOT: 'hugo/' # TODO: Remove once HUGO_DIR repo var is set; replace with ${{ vars.HUGO_DIR && format('{0}/', vars.HUGO_DIR) || '' }}
steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
Expand All @@ -27,7 +30,7 @@ jobs:
- name: Get changed markdown files
id: changed_files
run: |
FILES=$(git diff --diff-filter=AMD --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} -- 'content/en/**/*.md' | xargs)
FILES=$(git diff --diff-filter=AMD --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} -- "${HUGO_ROOT}content/en/**/*.md" | xargs)
echo "files=$FILES" >> $GITHUB_OUTPUT

- name: Check for site-region at top of page with support language
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/vale_linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ on:
pull_request:
paths:
- 'content/en/**/*'
- 'hugo/content/en/**/*'
- 'layouts/shortcodes/**/*.md'
- 'hugo/layouts/shortcodes/**/*.md'
- '!**/*.json'

permissions:
Expand All @@ -18,6 +20,8 @@ jobs:
vale:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
HUGO_ROOT: 'hugo/' # TODO: Remove once HUGO_DIR repo var is set; replace with ${{ vars.HUGO_DIR && format('{0}/', vars.HUGO_DIR) || '' }}
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
Expand Down Expand Up @@ -50,12 +54,12 @@ jobs:
CHANGED_FILES: ${{ steps.changed_lines.outputs.changed_files }}
run: |
vale "${CHANGED_FILES}" \
--output=local/bin/py/vale/vale_template.tmpl --no-exit > vale_output.log
--output=${HUGO_ROOT}local/bin/py/vale/vale_template.tmpl --no-exit > vale_output.log

- name: Parse Vale output
if: steps.changed_lines.outputs.changed_files
env:
CHANGED_LINES: ${{ steps.changed_lines.outputs.changed_lines }}
run: |
python local/bin/py/vale/vale_annotations.py \
python ${HUGO_ROOT}local/bin/py/vale/vale_annotations.py \
--git_data="${CHANGED_LINES}"
10 changes: 6 additions & 4 deletions .github/workflows/version_getter_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
id-token: write # Needed to federate tokens.
runs-on: ubuntu-latest
name: Find latest version
env:
HUGO_ROOT: 'hugo/' # TODO: Remove once HUGO_DIR repo var is set; replace with ${{ vars.HUGO_DIR && format('{0}/', vars.HUGO_DIR) || '' }}
steps:
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
id: octo-sts
Expand All @@ -39,12 +41,12 @@ jobs:
- name: Find and write latest version
id: write-version
run: |
python local/bin/py/version_getter.py --url ${{ inputs.url }} --file-name ${{ inputs.file_name }}
python ${HUGO_ROOT}local/bin/py/version_getter.py --url ${{ inputs.url }} --file-name ${{ inputs.file_name }}

- name: Save modified file
run: |
mkdir -p $RUNNER_TEMP/temp
cp ./data/{{ inputs.file_name }} $RUNNER_TEMP/temp/
cp ./${HUGO_ROOT}data/{{ inputs.file_name }} $RUNNER_TEMP/temp/

- name: echo new version
run: echo ${{ steps.write-version.outputs.new_version }}
Expand All @@ -55,14 +57,14 @@ jobs:

- name: Restore modified file
run: |
cp $RUNNER_TEMP/temp/{{ inputs.file_name }} ./data/
cp $RUNNER_TEMP/temp/{{ inputs.file_name }} ./${HUGO_ROOT}data/

- name: Write version
if: steps.write-version.outputs.new_version == 'true'
run: |-
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add ./data/{{ inputs.file_name }}
git add ./${HUGO_ROOT}data/{{ inputs.file_name }}
git commit -m "(Automated) Bump version"
git push -f origin HEAD:refs/heads/automatic-version-update/versions

Expand Down
Loading