|
|
@ -14,6 +14,17 @@ on:
|
|
|
|
- '*.md'
|
|
|
|
- '*.md'
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
check-file-changes:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Prevent file change
|
|
|
|
|
|
|
|
uses: xalvarez/prevent-file-change-action@v1
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
# Regex, /src/lang/*.json is not allowed to be changed, except for /src/lang/en.json
|
|
|
|
|
|
|
|
pattern: '^(?!src/lang/en\.json$)src/lang/.*\.json$'
|
|
|
|
|
|
|
|
trustedAuthors: UptimeKumaBot
|
|
|
|
|
|
|
|
|
|
|
|
auto-test:
|
|
|
|
auto-test:
|
|
|
|
needs: [ check-linters ]
|
|
|
|
needs: [ check-linters ]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
@ -65,6 +76,7 @@ jobs:
|
|
|
|
- run: npm ci --production
|
|
|
|
- run: npm ci --production
|
|
|
|
|
|
|
|
|
|
|
|
check-linters:
|
|
|
|
check-linters:
|
|
|
|
|
|
|
|
needs: [ check-file-changes ]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|