feat: add special rules with hardcoded-password rule #113
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |