Skip to content

Commit

Permalink
removed link replacement
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Avramenko <[email protected]>
  • Loading branch information
Mixaster995 committed Dec 23, 2021
1 parent 747fb91 commit 7b5cd9e
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,12 @@ jobs:
linkChecker:
runs-on: ubuntu-latest
container:
image: lycheeverse/lychee:latest
image: lycheeverse/lychee:20211216183321587853
env:
GITHUB_TOKEN: $LYCHEE_GITHUB_TOKEN
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check external links using lychee
run: |
REF=$(grep --include=\*.md -r . -e '?ref=' | head -1 | cut -d '=' -f2)
grep --include=\*.md -r . -e '?ref=' | while IFS= read -r line ; do
NEW_FILENAME=$(echo "$line" | cut -d ':' -f1)
if [ "$FILENAME" = "$NEW_FILENAME" ]; then
continue
fi
FILENAME="$NEW_FILENAME"
sed -i -e "s/github.com\/networkservicemesh\/deployments-k8s/github.com\/networkservicemesh\/deployments-k8s\/tree\/$REF/g" "$FILENAME"
sed -i -e "s/?ref=$REF//g" "$FILENAME"
done
lychee -v '**/*.md' --exclude-mail
lychee -v '**/*.md' --exclude-mail --exclude '.*?ref=.*'

0 comments on commit 7b5cd9e

Please sign in to comment.