From 5debc514d6e213850dfedc042a7fd6ad2bf1786b Mon Sep 17 00:00:00 2001 From: Nathan Rew Date: Wed, 30 Jun 2021 19:48:26 -0500 Subject: [PATCH] fix pull_request workflow Signed-off-by: Nathan Rew --- .github/workflows/pull_request.yml | 34 +++++++++++++++++------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 31e6d5b4..52f848ce 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -3,41 +3,45 @@ name: Pull Request Checks on: pull_request: branches: [ master ] + workflow_dispatch: jobs: check_syntax: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: create diff + run: git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" > temp.md - name: Use Node.js uses: actions/setup-node@v1 with: node-version: '14.x' - - name: create diff - run: | - git fetch - git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md - - name: Checks + - name: install chalk run: | cd tests npm install chalk cd .. - script -e -c 'node tests/test.js -r README.md -d temp.md' + - name: Checks + run: script -e -c 'node tests/test.js -r README.md -d temp.md' check_links: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: create diff + run: git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" > temp.md - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: ruby-version: 2.6.x - - name: create diff - run: | - git fetch - git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md + - name: install awesome_bot + run: gem install awesome_bot - name: Checks - run: | - gem install awesome_bot - awesome_bot -f temp.md --allow-redirect --skip-save-results --allow 202 --white-list < tests/awesomebot_whitelist.txt + run: awesome_bot -f temp.md --allow-redirect --skip-save-results --allow 202 --white-list < tests/link_whitelist.txt \ No newline at end of file