Migrate KIC docs to legacy site #13963
Workflow file for this run
This file contains 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: Handle Autogenerated Content | |
on: | |
pull_request: | |
types: [opened, synchronize, labeled, unlabeled] | |
jobs: | |
add-comment: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Add warning if needed | |
run: | | |
cd check-generated-content | |
npm ci | |
node run.js | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: ${{ github.event.action == 'opened' || github.event.action == 'synchronize' }} | |
prevent-merge-if-labeled: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: mheap/github-action-required-labels@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
mode: exactly | |
count: 0 | |
labels: "ci:prevent-merge:generated-files" |