diff --git a/.github/workflow-settings.json b/.github/workflow-settings.json index 78fbe72..0519d0c 100644 --- a/.github/workflow-settings.json +++ b/.github/workflow-settings.json @@ -15,5 +15,12 @@ "TOC_TITLE": "Details", "TOC_CREATE_PR": "true", "TOC_TARGET_PATHS": "README*.md", - "BRANCH_PREFIX": "release/" + "BRANCH_PREFIX": "release/", + "ANNOTATION_EXCLUDE_PATTERNS": [ + "warning jest", + "warning babel-jest", + "Cloning into", + "has unmet peer dependency", + "has incorrect peer dependency" + ] } diff --git a/.github/workflows/check-warnings.yml b/.github/workflows/check-warnings.yml index ce9cc57..0a342de 100644 --- a/.github/workflows/check-warnings.yml +++ b/.github/workflows/check-warnings.yml @@ -16,15 +16,16 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 3 steps: + - uses: technote-space/load-config-action@v1 + with: + CONFIG_FILENAME: workflow-settings.json, workflow-details.json + IGNORE_WARNING: 'true' - uses: technote-space/download-annotations-action@v1 id: annotations with: TARGET_RUN_ID: ${{ github.event.workflow_run.id }} INCLUDE_LEVELS: warning - EXCLUDE_MESSAGE_PATTERNS: | - *warning jest* - *Cloning into* - *has unmet peer dependency* + EXCLUDE_MESSAGE_PATTERNS: ${{ env.ANNOTATION_EXCLUDE_PATTERNS }} - name: Build attachments run: | arr1='[{"fields":[{"title":"repo","value":"","short":true},{"title":"action","value":"<${{ github.event.workflow_run.html_url }}|summary>","short":true}]}]'