From c0761bec639ff7913c80ad54fef36c056f593fcf Mon Sep 17 00:00:00 2001 From: William Harrison Date: Tue, 29 Nov 2022 08:41:44 +0800 Subject: [PATCH 1/2] Update and rename addRecords.yml to update-records.yml --- .../workflows/{addRecords.yml => update-records.yml} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{addRecords.yml => update-records.yml} (84%) diff --git a/.github/workflows/addRecords.yml b/.github/workflows/update-records.yml similarity index 84% rename from .github/workflows/addRecords.yml rename to .github/workflows/update-records.yml index 05e3bb8..7a11bb3 100644 --- a/.github/workflows/addRecords.yml +++ b/.github/workflows/update-records.yml @@ -1,7 +1,7 @@ -name: Add DNS records +name: Update Records on: push: - branches: [ main ] + branches: [main] jobs: validation: @@ -13,17 +13,17 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - - name: Get changed files + - name: Get Files id: changed-files uses: tj-actions/changed-files@v34 with: files: | sub-logs/** reserved/** - - name: Install modules + - name: Install Modules if: steps.changed-files.outputs.any_changed == 'true' run: yarn - - name: Add records + - name: Publish Records if: steps.changed-files.outputs.any_changed == 'true' id: tests run: yarn add-records From a6748afe4c833e604662d42b07d4c7d1e98f9434 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Tue, 29 Nov 2022 08:52:35 +0800 Subject: [PATCH 2/2] Update validation.yml --- .github/workflows/validation.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index bb9a728..12e6135 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -25,19 +25,17 @@ jobs: env: FILES: ${{ steps.changed-files.outputs.all_changed_files }} actions_path: ${{ github.workspace }} - - name: Post message + - name: Comment Results if: steps.tests.outputs.shouldComment == 'true' uses: mshick/add-pr-comment@v1 with: - message: | - **Validation Results** - - Information Validation - ${{steps.tests.outputs.infoMessage}} - ${{steps.tests.outputs.infoReason}} - - DNS Record Validation - ${{steps.tests.outputs.recordMessage}} - ${{steps.tests.outputs.recordInfo}} - - JSON File Content + message: | + ## Validation Results + | Information Validation | Record Validation | + |-|-| + | ${{steps.tests.outputs.infoMessage}}\n${{steps.tests.outputs.infoReason}} | ${{steps.tests.outputs.recordMessage}}\n${{steps.tests.outputs.recordInfo}} | + + ### JSON File Content ```json ${{steps.tests.outputs.jsonData}} ```