-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ba0984
commit 1998a1f
Showing
2 changed files
with
9 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,17 @@ | ||
name: Duster Fix | ||
name: Run Duster | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: main | ||
branches: [ main ] | ||
pull_request: | ||
|
||
jobs: | ||
duster: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: "Duster Fix" | ||
- name: "duster" | ||
uses: tighten/duster-action@v3 | ||
with: | ||
args: fix | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
id: auto_commit_action | ||
with: | ||
commit_message: Dusting | ||
commit_user_name: GitHub Action | ||
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: GitHub Action | ||
commit_user_email: [email protected] | ||
args: lint |
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