CIzzBuzz #28
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: CIzzBuzz | |
on: | |
pull_request: | |
merge_group: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# If this job was triggered by a `merge_group` event, sleep for a little | |
# bit. This gives me time to queue up a handful of PRs to test the | |
# "maximum pull requests to merge" option. | |
- run: sleep 90 | |
if: ${{ github.event_name == 'merge_group' }} | |
- run: | | |
line_count=$(git ls-files -z | xargs -0 cat | LANG=C wc -l) | |
factor "$line_count" | |
(( ((line_count % 3) == 0) ^ ((line_count % 5) == 0) )) |