Skip to content

Commit

Permalink
Update Duster CI to not commit
Browse files Browse the repository at this point in the history
  • Loading branch information
driftingly committed Sep 27, 2024
1 parent 0ba0984 commit 1998a1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 35 deletions.
33 changes: 5 additions & 28 deletions .github/workflows/duster.yml
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
11 changes: 4 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: tests
name: Run Tests

on:
# Commits made in Duster Fix will not trigger any workflows
# Tests are configured to run after the workflow finishes
workflow_run:
workflows: ["Duster Fix"]
types:
- completed
push:
branches: [ main ]
pull_request:

jobs:
test:
Expand Down

0 comments on commit 1998a1f

Please sign in to comment.