From af89e7930fa66e1d0726c7548563a229b135a3e5 Mon Sep 17 00:00:00 2001 From: Nathan Rew Date: Wed, 30 Jun 2021 16:49:40 -0500 Subject: [PATCH] fix pull_request workflow Signed-off-by: Nathan Rew --- .github/workflows/pull_request.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 5923add4..31e6d5b4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -14,13 +14,14 @@ jobs: with: node-version: '14.x' - name: create diff - run: git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md + run: | + git fetch + git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md - name: Checks run: | - cd test + cd tests npm install chalk cd .. - script -e -c 'node tests/test.js -r README.md -d temp.md' check_links: @@ -32,7 +33,9 @@ jobs: with: ruby-version: 2.6.x - name: create diff - run: git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md + run: | + git fetch + git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md - name: Checks run: | gem install awesome_bot