diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 0000000..a73ec3e --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,33 @@ +name: Links (Fail Fast) + +on: + #push: + # branches: + # - master + schedule: + # Run everyday Sunday at 4:00 UTC + - cron: "0 4 * * 0" + + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Link Checker + uses: lycheeverse/lychee-action@v1.5.1 + with: + fail: true + # Use json as output format (instead of markdown) + format: json + # Use different output file path + output: /tmp/out.md + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Create Issue From File + uses: peter-evans/create-issue-from-file@v2 + with: + title: Link Checker Report + content-filepath: /tmp/out.md + labels: report, automated issue \ No newline at end of file diff --git a/README.md b/README.md index 1466ef3..0da76b2 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ A curated list of Bitcoin Cash projects & resources
awesome + +

Bitcoin Cash (BCH) is a project to scale bitcoin on-chain as an electronic peer-to-peer payment system for the world. 🚀 @@ -21,8 +23,9 @@ Bitcoin Cash (BCH) is a project to scale bitcoin on-chain as an electronic peer- 📤 [a mobile friendly version](https://awesomebitcoin.cash) of this [project](https://github.com/2qx/awesome-bitcoin-cash) is formatted [from markdown](https://github.com/2qx/awesome-bitcoin-cash/blob/master/README.md) by github pages. Pull requests are welcome, please see [the contribution guidelines](CONTRIBUTING.md). +
- +[![Check Links](https://github.com/2qx/awesome-bitcoin-cash/actions/workflows/links.yml/badge.svg)](https://github.com/2qx/awesome-bitcoin-cash/actions/workflows/links.yml) # Contents