We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb806e8 + 98e8cff commit 4baee27Copy full SHA for 4baee27
.github/workflows/commitlint-autofix.yml
@@ -6,7 +6,7 @@ on:
6
types: [completed]
7
8
concurrency:
9
- group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
+ group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}
10
cancel-in-progress: true
11
12
permissions:
@@ -16,7 +16,9 @@ permissions:
16
jobs:
17
auto-fix-commits:
18
name: Squash and Fix Commit Messages
19
- if: |
+ # Only run when commitlint fails on a pull_request event
20
+ if: >-
21
+ github.event_name == 'workflow_run' &&
22
github.event.workflow_run.conclusion == 'failure' &&
23
github.event.workflow_run.event == 'pull_request'
24
runs-on: ubuntu-latest
0 commit comments