Skip to content

Commit 2be9bdf

Browse files
authored
fix: report path supports only one path and leverage glob (#25)
Removes the s which is misleading and make sure it works with glob patterns.
1 parent 81c6a15 commit 2be9bdf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
uses: ./
5656
with:
5757
token: fake-valid-token
58-
report_paths: zfixtures/junit_example.xml
58+
report_path: zfixtures/*.xml
5959
mergify_api_url: http://localhost:1080
6060

6161
- name: Get job ID
@@ -83,7 +83,7 @@ jobs:
8383
uses: ./
8484
with:
8585
token: fake-valid-token
86-
report_paths: zfixtures/junit_example.xml
86+
report_path: zfixtures/junit_example.xml
8787
mergify_api_url: http://localhost:1085
8888

8989
- name: Dump mockserver logs

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ inputs:
88
token:
99
required: true
1010
description: Mergify CI token
11-
report_paths:
11+
report_path:
1212
required: true
13-
description: Paths of the files to upload
13+
description: Path of the files to upload
1414
mergify_api_url:
1515
required: false
1616
description: URL of the Mergify API
@@ -33,7 +33,7 @@ runs:
3333
env:
3434
MERGIFY_API_URL: ${{ inputs.mergify_api_url }}
3535
MERGIFY_TOKEN: ${{ inputs.token }}
36-
FILES: ${{ inputs.report_paths }}
36+
FILES: ${{ inputs.report_path }}
3737
run: |
3838
set -x -e
39-
mergify ci junit-upload "${FILES}"
39+
mergify ci junit-upload ${FILES}

0 commit comments

Comments
 (0)