fix pull_request workflow

Signed-off-by: Nathan Rew <nrew225@gmail.com>
This commit is contained in:
Nathan Rew 2021-06-30 16:40:03 -05:00
parent 27071cb9c8
commit becb838708

View File

@ -2,7 +2,7 @@ name: Pull Request Checks
on: on:
pull_request: pull_request:
branches: [ main ] branches: [ master ]
jobs: jobs:
check_syntax: check_syntax:
@ -13,12 +13,14 @@ jobs:
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: '14.x' node-version: '14.x'
- name: create diff
run: git diff origin/master -U0 README.md | grep --perl-regexp --only-matching "(?<=^\+).*" >> temp.md
- name: Checks - name: Checks
run: | run: |
cd test cd test
npm install chalk npm install chalk
cd .. 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' script -e -c 'node tests/test.js -r README.md -d temp.md'
check_links: check_links:
@ -29,6 +31,8 @@ jobs:
uses: actions/setup-ruby@v1 uses: actions/setup-ruby@v1
with: with:
ruby-version: 2.6.x 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 - name: Checks
run: | run: |
gem install awesome_bot gem install awesome_bot