fix: duster workflow

This commit is contained in:
Rico van Zelst
2025-05-05 18:33:54 +02:00
parent 1d066b6c24
commit d70611d041
4 changed files with 24 additions and 47 deletions

View File

@@ -1,43 +0,0 @@
name: Duster Fix
# Commits made in here will not trigger any workflows
# Checkout Duster's documentation for a workaround
on:
push:
branches: [ main ]
pull_request:
jobs:
duster:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: "Duster Fix"
uses: tighten/duster-action@v3
with:
args: fix
- uses: stefanzweifel/git-auto-commit-action@v5
id: auto_commit_action
with:
commit_message: Dusting
commit_user_name: GitHub Action
commit_user_email: actions@github.com
- 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@v5
with:
commit_message: Ignore Dusting commit in git blame
commit_user_name: GitHub Action
commit_user_email: actions@github.com

20
.github/workflows/duster-lint.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Duster Lint
on:
push:
branches: [ main ]
pull_request:
jobs:
duster:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: "Duster Lint"
uses: tighten/duster-action@v3
with:
args: lint