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.
1 parent 59c1583 commit d450528Copy full SHA for d450528
.github/workflows/static-analysis.yml
@@ -12,8 +12,12 @@ on:
12
- "v*.*"
13
- "master"
14
- "feature/*"
15
- tags:
16
- - "*"
+ workflow_call:
+ inputs:
17
+ ref:
18
+ description: "The git reference to check"
19
+ type: string
20
+ required: true
21
22
env:
23
PHP_VERSION: "8.2"
@@ -27,6 +31,8 @@ jobs:
27
31
steps:
28
32
- name: "Checkout"
29
33
uses: "actions/checkout@v4"
34
+ with:
35
+ ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}
30
36
37
- name: "Setup"
38
uses: "./.github/actions/setup"
@@ -43,6 +49,7 @@ jobs:
43
49
sarif_file: psalm.sarif
44
50
45
51
rector:
52
+ if: ${{ github.event_name != 'workflow_dispatch' }}
46
53
name: "Rector"
47
54
runs-on: "ubuntu-22.04"
48
55
0 commit comments