File: checks.yaml

package info (click to toggle)
node-csstype 3.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,320 kB
  • sloc: javascript: 49; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 1,393 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: 'Checks'
on:
  push:
    # Only run if a generated file was modified
    paths:
      - index.d.ts
      - index.js.flow

jobs:
  do_not_modify_generated_files:
    name: 'Check which files were modifed'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Check if non-generated files were modified
        id: other_files
        uses: tj-actions/changed-files@v32
        with:
          files_ignore: |
            index.d.ts
            index.js.flow

      - uses: LouisBrunner/checks-action@v1.1.1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          name: 'Never modify index.d.ts and index.js.flow directly'
          # Set status to 'success' if other files were changed,
          # or 'failure' if only index.d.ts or index.js.flow were changed
          conclusion: ${{ steps.other_files.outputs.any_changed == 'true' && 'success' || 'failure' }}
          output: |
            {"summary":"We detected that you only modified `index.d.ts` and/or `index.js.flow`. **Never modify `index.d.ts` and `index.js.flow` directly. They are generated automatically and committed so that we can easily follow any change it results in.** You probably want to update [MDN's CSS data](https://github.com/mdn/data) or [add a patch](https://github.com/frenic/csstype/blob/master/src/data/patches.ts)."}