Skip to content

feat: catch username password inside urls #81

feat: catch username password inside urls

feat: catch username password inside urls #81

Workflow file for this run

name: Validate README
on:
pull_request:
branches:
- master
merge_group:
jobs:
validate:
name: README should be updated
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "^1.20"
- name: update README
run: ./.ci/update-readme.sh
- name: validate README wasn't updated
run: |
if ! git diff-index --quiet HEAD; then
# Find the line numbers of the start and end markers
start_line=$(grep -n '<!-- command-line:start -->' README.md | cut -d ":" -f 1)
end_line=$(grep -n '<!-- command-line:end -->' README.md | cut -d ":" -f 1)
echo "::error file=README.md,title=Outdated README,line=$start_line,endLine=$end_line::README.md is outdated, please run ./.ci/update-readme.sh"
exit 1
fi