SonarQube rewrite #1836
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: Attribute dictionary updates | |
on: | |
pull_request: | |
branches: | |
- develop | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
deny-attribute-dictionary-changes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Prevent file change | |
uses: xalvarez/[email protected] | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
pattern: .*attribute-dictionary\.json$ | |
trustedAuthors: svc-docs-eng-opensource-bot | |
- name: Comment if JSON file is modified | |
if: failure() | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: | | |
> [!WARNING] | |
> `attribute-dictionary.json` is an autogenerated file. | |
> | |
> Changes to attribute dictionary should be made through the `attribute-dictionary` repo in GHE. |