Skip to content

[DOCS-6352] Remove runtime metrics from list of unsupported features. #14270

[DOCS-6352] Remove runtime metrics from list of unsupported features.

[DOCS-6352] Remove runtime metrics from list of unsupported features. #14270

Workflow file for this run

name: Post preview link
on:
pull_request:
paths:
- 'content/en/**.md'
jobs:
preview-link:
if: contains(github.head_ref, '/')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install Mako
- name: Find changed files
id: changed_files
uses: tj-actions/changed-files@v23
with:
include_all_old_new_renamed_files: true
- name: Generate links
env:
branch: ${{ github.head_ref }}
id: comment_body
run: |
python local/bin/py/preview_links.py --deleted='${{ steps.changed_files.outputs.deleted_files }}' \
--renamed='${{ steps.changed_files.outputs.renamed_files }}' \
--modified='${{ steps.changed_files.outputs.modified_files }}' \
--added='${{ steps.changed_files.outputs.added_files }}'
- name: Render template
id: template
uses: chuhlomin/[email protected]
with:
template: .github/preview-links-template.md
- name: Find existing comment
uses: peter-evans/[email protected]
id: find_comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: "Preview links ("
- name: Post comment
uses: peter-evans/[email protected]
with:
issue-number: ${{ github.event.pull_request.number }}
comment-id: ${{ steps.find_comment.outputs.comment-id }}
edit-mode: replace
body: ${{ steps.template.outputs.result }}