feat: replace monitorJSON.name
with monitorJSON.pathName
to display the monitors path, not just the root
#1987
This file contains hidden or 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: prevent-file-change | |
on: | |
pull_request: | |
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 | |