Skip to content

Commit beef5da

Browse files
committed
Added GitHub action for detecting broken links
1 parent 6acad7f commit beef5da

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/broken-links.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
push:
3+
branches: master
4+
schedule:
5+
- cron: "0 16 * * *"
6+
name: broken links?
7+
jobs:
8+
linkChecker:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Link Checker
13+
id: lc
14+
uses: peter-evans/link-checker@v1.2.2
15+
with:
16+
args: -v -r *.md
17+
- name: Fail?
18+
run: exit ${{ steps.lc.outputs.exit_code }}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# mastercard-api-client-tutorial
22

3+
[![](https://github.com/Mastercard/mastercard-api-client-tutorial/workflows/broken%20links%3F/badge.svg)](https://github.com/Mastercard/mastercard-api-client-tutorial/actions?query=workflow%3A%22broken+links%3F%22)
4+
35
[Generating and Configuring a Mastercard API Client](https://developer.mastercard.com/platform/documentation/security-and-authentication/generating-and-configuring-a-mastercard-api-client/) explains how to generate and configure a simple API client for one of the APIs offered on the [Mastercard Developer portal](https://developer.mastercard.com/apis).
46

57
Languages used in this tutorial: Java, Python, NodeJS, Ruby, PHP and C#.

0 commit comments

Comments
 (0)