Skip to content

ci: Create docs workflow #5

ci: Create docs workflow

ci: Create docs workflow #5

Workflow file for this run

name: Documentation update checker
on:
pull_request:
paths:
- 'deploy/Kubernetes/**'
- '**/*.md'
- 'CODEOWNERS'
jobs:
pr_reminder:
runs-on: ubuntu-latest
steps:
- name: Skipping full CI for documentation
uses: actions/github-script@v7
env:
REPOSITORY: ${{ github.repository }}
CONTRIBUTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
script: |
const { REPOSITORY, CONTRIBUTOR } = process.env
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: `👋 Hi ${CONTRIBUTOR}! Thank you for contributing to ${REPOSITORY}.\n\n` +
`This change is made to a file that does not require full CI testing. A repository admin will review these changes.\n\n` +
`Once verified, the reviewer will merge the PR. Thanks! \n\n` +
`🚀`
})
github.rest.issues.createLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: "documentation"
})