1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-25 22:02:05 +00:00

ci: add fixup check to Github Actions

This commit is contained in:
Tomas Susanka 2021-02-16 16:27:22 +01:00
parent c42850f997
commit 8955d04b5e
2 changed files with 11 additions and 12 deletions

11
.github/workflows/fixup_check.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: Git Checks
on: [pull_request]
jobs:
block-fixup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.0.0
- name: Block Fixup Commit Merge
uses: 13rac1/block-fixup-merge-action@v2.0.0

View File

@ -1,12 +0,0 @@
#!/usr/bin/env bash
git fetch origin master:master # on CIs it is common to fetch only the current branch
messages=$(git log --format=%s master..) # commit messages between this branch and master
if [[ $messages =~ "fixup!" ]]; then
echo 'Failure: Some commit message contains "fixup!" string.'
exit 1
else
echo 'Success: No commit messages containing "fixup!" string.'
fi