From 9d4d72f88be4ad975c5ab8c44474156d3af498fb Mon Sep 17 00:00:00 2001 From: Robert Duncan Date: Sat, 21 Oct 2023 21:54:12 -0700 Subject: [PATCH] chore: test workflow --- .github/workflows/main.yaml | 5 +++-- test_files/new_doctype_deleted.json | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index fa48638..d4b4037 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -33,7 +33,8 @@ jobs: run: | pip install ansi2html cat diff_output.txt | ansi2html > diff_output.html - sed -n '//,/<\/body>/p' diff_output.html | sed '1d;$d' > body_content.html + sed -i -n '/
/,/<\/pre>/p' diff_output.html
+          sed -i '1d;$d' diff_output.html
       
       - name: Post comment
         if: github.event_name == 'pull_request'
@@ -41,7 +42,7 @@ jobs:
         with:
           script: |
             const fs = require('fs');
-            const output = fs.readFileSync('body_content.html', 'utf8');
+            const output = fs.readFileSync('diff_output.html', 'utf8');
             const issue_number = context.issue.number;
             github.rest.issues.createComment({
               owner: context.repo.owner,
diff --git a/test_files/new_doctype_deleted.json b/test_files/new_doctype_deleted.json
index 400c67a..1df4ccf 100644
--- a/test_files/new_doctype_deleted.json
+++ b/test_files/new_doctype_deleted.json
@@ -21,13 +21,11 @@
   },
   {
    "fieldname": "new_docfield_2",
-   "fieldtype": "Int",
    "label": "New Docfield 2"
   },
   {
    "fieldname": "new_docfield_3",
    "fieldtype": "Link",
-   "label": "New Docfield 3",
    "options": "Contact"
   },
   {