-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.16 KB
/
duster-fix-blame.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Duster Fix
# Commits made in here will not trigger any workflows
# Checkout Duster's documentation for a workaround
on:
# push:
# branches: [ master ]
pull_request:
jobs:
duster:
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: "Duster Fix"
uses: tighten/duster-action@v2
with:
args: fix
- uses: stefanzweifel/git-auto-commit-action@v4
id: auto_commit_action
with:
commit_message: Dusting
commit_user_name: EncoreBot
commit_user_email: [email protected]
- name: Ignore Duster commit in git blame
if: steps.auto_commit_action.outputs.changes_detected == 'true'
run: echo ${{ steps.auto_commit_action.outputs.commit_hash }} >> .git-blame-ignore-revs
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Ignore Dusting commit in git blame
commit_user_name: EncoreBot
commit_user_email: [email protected]