Add "Hiring Without Whiteboards" repo to the "Other Lists" section #4
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: Static Code Review | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check if README.md was modified | |
id: check_readme | |
run: | | |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep -q "README.md"; then | |
echo "readme_modified=true" >> $GITHUB_OUTPUT | |
else | |
echo "readme_modified=false" >> $GITHUB_OUTPUT | |
fi | |
- name: Post comment if README.md is edited | |
if: steps.check_readme.outputs.readme_modified == 'true' | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh pr comment ${{ github.event.pull_request.number }} --body "Please edit the [\`data_sources.json\`](../edit/main/data_sources.json) file instead of the \`README.md\`, as the README is auto-generated. Thank you 🙏" |