workflow to auto update .git-blame-ignore-revs

This commit is contained in:
Denis Rouzaud 2024-12-12 16:21:41 +01:00 committed by GitHub
parent fb501d5734
commit 55d276d740
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,31 @@
name: 🙈 Update git-blame-ignore-revs
on:
workflow_dispatch:
push:
branches:
- master
- release-*
jobs:
sipify:
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 200
- name: update
run: |
for f in $(git log --oneline --reverse --grep="\[pre-commit.ci\] auto fixes from pre-commit.com hooks" | cut -d' ' -f1); do
ggrep -q "^${f}" .git-blame-ignore-revs || echo "${f}" >> .git-blame-ignore-revs
done
- name: commit
run: |
git config user.name qgis-bot
git config user.email bot@qgis.org
git add .git-blame-ignore-revs
git commit -m "auto update .git-blame-ignore-revs 🙈" || echo "nothing to commit 🍺"
git push