Skip to content

Commit 6552530

Browse files
committed
Added iwyu-test branch trigger that uploads patch without a PR.
1 parent 223801f commit 6552530

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/iwyu.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
description: 'Branch to clean up.'
1010
type: string
1111
default: dev
12+
push:
13+
branches: [iwyu-test]
1214

1315
permissions:
1416
contents: write
@@ -28,7 +30,7 @@ jobs:
2830
steps:
2931
- name: Resolve target ref.
3032
id: target
31-
run: echo "ref=${{ inputs.ref || 'dev' }}" >> $GITHUB_OUTPUT
33+
run: echo "ref=${{ inputs.ref || (github.event_name == 'push' && github.ref_name) || 'dev' }}" >> $GITHUB_OUTPUT
3234

3335
- name: Clone.
3436
uses: actions/checkout@v6
@@ -179,7 +181,7 @@ jobs:
179181
open-pr:
180182
name: Open pull request
181183
needs: [generate, verify-linux, verify-mac, verify-win]
182-
if: needs.generate.outputs.has_changes == 'true'
184+
if: needs.generate.outputs.has_changes == 'true' && github.event_name != 'push'
183185
runs-on: ubuntu-latest
184186

185187
steps:

0 commit comments

Comments
 (0)