Skip to content

Commit

Permalink
chore: test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robproject committed Oct 22, 2023
1 parent 1be25f7 commit 9d4d72f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ jobs:
run: |
pip install ansi2html
cat diff_output.txt | ansi2html > diff_output.html
sed -n '/<body>/,/<\/body>/p' diff_output.html | sed '1d;$d' > body_content.html
sed -i -n '/<pre class="ansi2html-content">/,/<\/pre>/p' diff_output.html
sed -i '1d;$d' diff_output.html
- name: Post comment
if: github.event_name == 'pull_request'
uses: actions/github-script@v6
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,
Expand Down
2 changes: 0 additions & 2 deletions test_files/new_doctype_deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
{
Expand Down

0 comments on commit 9d4d72f

Please sign in to comment.