URL auditor with URL fixes

This commit is contained in:
ScriptAutomate 2022-10-31 11:17:14 -05:00 committed by Daniel Wozniak
parent aba5f6238e
commit d07172cc0e
3 changed files with 55 additions and 2 deletions

15
.brokignore Normal file
View file

@ -0,0 +1,15 @@
http://127.0.0.1
http://example.com
http://example.org
http://github.com
http://localhost
http://www.example.com
http://www.example.org
https://127.0.0.1
https://example.com
https://example.org
https://github.com
https://localhost
https://twitter.com/intent/follow?screen_name=Salt_Project_OS
https://www.example.com
https://www.example.org

38
.github/workflows/url-check.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: URL validator
on: [push, pull_request]
jobs:
Pre-Commit:
name: Run brok Against Salt
runs-on: ubuntu-latest
container:
image: debian:buster-slim
steps:
- name: Install System Deps
run: |
apt-get update
apt-get install -y wget libtinfo5
- uses: actions/checkout@v2
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m")"
shell: bash
- uses: actions/cache@v2
with:
path: .brokdb
key: ${{ hashFiles('.github/workflows/url-check.yml') }}-${{ hashFiles('.brokignore') }}-${{ steps.get-date.outputs.date }}
- name: Install brok
run: |
wget https://github.com/smallhadroncollider/brok/releases/download/1.1.0/brok-1.1.0_x86-64-linux.deb
dpkg -i brok-1.1.0_x86-64-linux.deb
- name: Run brok
run: |
brok --ignore $(cat .brokignore) $(find . -type f -name "*.rst") $(find . -type f -name "*.md") > /dev/null

View file

@ -83,8 +83,8 @@ served from the ``first`` repository.
.. code-block:: yaml
gitfs_remotes:
- https://mydomain.tld/repos/first.git
- https://mydomain.tld/repos/second.git
- https://example.com/repos/first.git
- https://example.com/repos/second.git
.. note::