diff --git a/.github/workflows/protected-file-comment.yml b/.github/workflows/protected-file-comment.yml index 31c3cce508e..1365e1d7179 100644 --- a/.github/workflows/protected-file-comment.yml +++ b/.github/workflows/protected-file-comment.yml @@ -20,7 +20,7 @@ jobs: uses: xalvarez/prevent-file-change-action@v1.5.1 with: githubToken: ${{ secrets.GITHUB_TOKEN }} - pattern: .*attribute-dictionary\.json$ + pattern: .*attribute-dictionary-.*\.json$ trustedAuthors: svc-docs-eng-opensource-bot - name: Prevent ruby config file change @@ -44,7 +44,7 @@ jobs: with: message: | > [!WARNING] - > **`attribute-dictionary.json` is an autogenerated file.** + > **Attribute dictionary files (`attribute-dictionary-*.json`) are autogenerated files.** > > Changes to attribute dictionary should be made through the `attribute-dictionary` repo in GHE. diff --git a/.github/workflows/update-attribute-dictionary-json.yml b/.github/workflows/update-attribute-dictionary-json.yml index 4b3cbfa4ae6..abdcf108291 100644 --- a/.github/workflows/update-attribute-dictionary-json.yml +++ b/.github/workflows/update-attribute-dictionary-json.yml @@ -41,7 +41,7 @@ jobs: run: | git config --local user.email "${{ env.BOT_EMAIL }}" git config --local user.name "${{ env.BOT_NAME }}" - git add src/data/attribute-dictionary.json + git add src/data/attribute-dictionary-en.json git commit -m 'chore: Update Attribute Dictionary JSON' - name: Create Pull Request diff --git a/scripts/actions/update-attribute-dictionary-json.mjs b/scripts/actions/update-attribute-dictionary-json.mjs index 1ed6b1eb901..9b2ce13b98a 100644 --- a/scripts/actions/update-attribute-dictionary-json.mjs +++ b/scripts/actions/update-attribute-dictionary-json.mjs @@ -7,7 +7,7 @@ import sortBy from 'lodash/fp/sortBy.js'; // this should be prod nerdgraph const NERDGRAPH_API_URL = 'https://api.newrelic.com/graphql'; -const JSON_FILE_PATH = 'src/data/attribute-dictionary.json'; +const JSON_FILE_PATH = 'src/data/attribute-dictionary-en.json'; const GQL_QUERY = ` {