Skip to content

ci: check for changes to README and man page #1

ci: check for changes to README and man page

ci: check for changes to README and man page #1

---
name: "Sync README and man page"
on:
push:
branches:
- 'master'
paths:
- 'README.rst'
- 'git-secrets.1'
pull_request:
branches:
- 'master'
paths:
- 'README.rst'
- 'git-secrets.1'
jobs:
sync-readme-man-page:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
README_CHANGED=$(git diff --exit-code README.rst &>/dev/null; echo $?)

Check failure on line 24 in .github/workflows/sync-readme-manpage.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sync-readme-manpage.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
MANPAGE_CHANGED=$(git diff --exit-code git-secrets.1 &>/dev/null; echo $?)
if [[ $README_CHANGE == $MANPAGE_CHANGED ]]; then
echo "README and man page in sync."
exit 0
else
echo "If changes are made to one of {README.rst, git-secrets.1}, changes need to be made to the other."
exit 1
fi