From becb838708dd3175fb3bedd3b62cb1db82a19523 Mon Sep 17 00:00:00 2001 From: Nathan Rew Date: Wed, 30 Jun 2021 16:40:03 -0500 Subject: [PATCH] fix pull_request workflow Signed-off-by: Nathan Rew --- .github/workflows/pull_request.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 5152a8e7..5923add4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -2,7 +2,7 @@ name: Pull Request Checks on: pull_request: - branches: [ main ] + branches: [ master ] jobs: check_syntax: @@ -13,12 +13,14 @@ jobs: uses: actions/setup-node@v1 with: node-version: '14.x' + - name: create diff + run: git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md - name: Checks run: | cd test npm install chalk cd .. - git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md + script -e -c 'node tests/test.js -r README.md -d temp.md' check_links: @@ -29,6 +31,8 @@ jobs: uses: actions/setup-ruby@v1 with: ruby-version: 2.6.x + - name: create diff + run: git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md - name: Checks run: | gem install awesome_bot