Skip to content

Commit bc8f37b

Browse files
committed
Add option to disable artifact upload in checkout-junit-reports sub-action
1 parent 309d154 commit bc8f37b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/integration-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ jobs:
6363
git-branch: junit-reports-it-${{ github.sha }}-download
6464
path: junit-reports-first-index-3
6565

66+
- name: Checkout JUnit reports (split-index 0c)
67+
uses: ./checkout-junit-reports
68+
with:
69+
split-index: 0
70+
git-branch: junit-reports-it-${{ github.sha }}-download
71+
path: junit-reports-first-index-4
72+
upload-artifact: false
73+
6674
- name: Assert JUnit reports
6775
run: |
6876
for SPLIT_INDEX in {0..3}; do

checkout-junit-reports/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ inputs:
1818
required: false
1919
type: string
2020
default: ${{ github.workspace }}
21+
upload-artifact:
22+
description: Configures if the artifact should be uploaded. Useful if you have an additional matrix dimension, so limiting to split-index 0 is not enough to prevent concurrency issues (boolean)
23+
required: false
24+
type: boolean
25+
default: true
2126
artifact-name:
2227
description: The artifact name for the SHA of the JUnit reports (string)
2328
required: false
@@ -43,7 +48,7 @@ runs:
4348
shell: bash
4449
run: |
4550
echo "Checking JUnit reports SHA"
46-
UPLOAD_SHA_ARTIFACT=true
51+
UPLOAD_SHA_ARTIFACT=${{ inputs.upload-artifact }}
4752
CHECKOUT_REF=${{ inputs.git-branch }}
4853
if [ -d ${{ inputs.artifact-path }} ]; then
4954
cd ${{ inputs.artifact-path }}

0 commit comments

Comments
 (0)