docs(operator): migration guide from kgo 1.6.x to ko 2.0 #10024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting | |
on: | |
pull_request: | |
types: [synchronize, ready_for_review, opened, labeled] | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 | |
with: | |
egress-policy: audit | |
- name: Check if manual review has been performed | |
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 | |
id: labels | |
with: | |
result-encoding: string | |
script: | | |
const { data: labels } = await github.rest.issues.listLabelsOnIssue({ | |
...context.repo, | |
issue_number: context.issue.number | |
}); | |
return labels.map(l => l.name).includes('ci:manual-approve:linting') | |
outputs: | |
result: ${{ steps.labels.outputs.result }} | |
vale: | |
needs: check | |
if: needs.check.outputs.result == 'false' | |
name: Vale | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
with: | |
fetch-depth: 2 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf # 4edd678ac3f81e2dc578756871e4d00c19191daf | |
with: | |
sha: ${{ github.sha }} | |
files: | | |
app/**/*.md | |
app/_landing_pages/**/*.yaml | |
files_ignore: | | |
app/assets/** | |
app/_references/** | |
json: true | |
quotepath: false | |
escape_json: false | |
- uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # v2.1.1 | |
if: steps.changed-files.outputs.any_changed == 'true' | |
with: | |
fail_on_error: true | |
files: '${{ steps.changed-files.outputs.all_changed_files }}' | |
filter_mode: file | |
reporter: github-pr-annotations | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Prepare Frontmatters for Vale | |
env: | |
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
run: | | |
cd tools/vale-frontmatter | |
npm ci | |
node index.js $CHANGED_FILES | |
- uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # v2.1.1 | |
if: steps.changed-files.outputs.any_changed == 'true' | |
with: | |
fail_on_error: true | |
files: '${{ steps.changed-files.outputs.all_changed_files }}' | |
files_ignore: | | |
app/_references/** | |
filter_mode: file | |
reporter: github-pr-annotations | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |