check contributors.markdown on PRs #1
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: check CONTRIBUTORS.markdown | |
on: | |
pull_request: | |
jobs: | |
check-contributor: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: CONTRIBUTORS.markdown | |
- shell: bash | |
run: | | |
echo "If this step fails, make sure you've added yourself to CONTRIBUTORS.markdown" | |
echo "to acknowledge Unison's MIT license." | |
egrep '\* .* \(@${{github.event.pull_request.user.login}}\)' \ | |
CONTRIBUTORS.markdown |