Skip to content

Commit

Permalink
moving check-links out of main workflow to make it non blocking for r…
Browse files Browse the repository at this point in the history
…eleases
  • Loading branch information
Azfaar Qureshi committed Dec 16, 2020
1 parent 3820224 commit 72e37f3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,6 @@ jobs:
if: ${{ failure() && github.ref == 'ref/head/master' }}
run: |
go run cmd/issuegenerator/main.go $TEST_RESULTS
check-links:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: '9'
- name: Check links in markdown docs
run: |
pushd $HOME
npm install --save-dev markdown-link-check@3.8.1
popd
- run: ./.github/workflows/check-links/check-links.sh
setup-environment:
runs-on: ubuntu-latest
steps:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: check-links
on:
push:
branches: [master]
pull_request:

check-links:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: '9'
- name: Check links in markdown docs
run: |
pushd $HOME
npm install --save-dev markdown-link-check@3.8.1
popd
- run: ./.github/workflows/check-links/check-links.sh

0 comments on commit 72e37f3

Please sign in to comment.