Use theforeman-rubocop gem #445
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: Assert Single Commit (non-blocking) | |
on: pull_request | |
jobs: | |
build: | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 30 | |
- name: Checkout main | |
run: git fetch origin main | |
- name: create local master branch | |
run: git branch main origin/main | |
- name: Commit Count Check | |
run: test `git log --oneline --no-merges HEAD ^main | wc -l ` = 1 | |
runs-on: ubuntu-latest |