2021-04-22 13:34:17 -04:00
|
|
|
name: GitHub Actions CI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: master
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check_links:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Check links
|
|
|
|
id: lychee
|
2022-02-21 09:01:18 -05:00
|
|
|
uses: lycheeverse/lychee-action@v1.3.0
|
2021-06-08 21:44:10 -04:00
|
|
|
with:
|
2022-02-21 09:01:18 -05:00
|
|
|
args: README.md README_ZH-CN.md --verbose --no-progress --exclude wiki.bash-hackers.org/*
|
2021-04-22 13:34:17 -04:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Check lychee exit code
|
|
|
|
run: exit ${{ steps.lychee.outputs.exit_code }}
|