Commit 53163693 authored by Meenakshi Sharma's avatar Meenakshi Sharma Committed by GitHub
Browse files

Update trigger_ci.yml to remove ignore_path for documentation (#255)


Signed-off-by: default avatarMeenakshi Sharma <163925564+nvda-mesharma@users.noreply.github.com>
parent 00bc41d8
name: Documentation update checker
on:
pull_request:
types: [opened]
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` +
`🚀`
})
- name: Adding Label
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.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ["documentation"]
});
...@@ -19,16 +19,8 @@ on: ...@@ -19,16 +19,8 @@ on:
push: push:
branches: branches:
- main - main
paths-ignore:
- 'deploy/Kubernetes/**'
- '**/*.md'
- 'CODEOWNERS'
pull_request: pull_request:
paths-ignore:
- 'deploy/Kubernetes/**'
- '**/*.md'
- 'CODEOWNERS'
jobs: jobs:
mirror_repo: mirror_repo:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment