Skip to content

Commit 22bd28a

Browse files
committed
sanitizing the variant name in a step
1 parent 231ef81 commit 22bd28a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/runner-gradle-profiler/action.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,16 @@ runs:
114114
DEVELOCITY_ACCESS_KEY: ${{ inputs.api-key }}
115115
CI_URL_CACHE_NODE: ${{ inputs.cache-url }}
116116

117+
- name: Sanitize variant name
118+
id: sanitize
119+
run: |
120+
VARIANT="${{ inputs.variant }}"
121+
SAFE_VARIANT="${VARIANT//\//-}"
122+
echo "safe_variant=$SAFE_VARIANT" >> $GITHUB_OUTPUT
123+
117124
- name: Archive Profiler Artifacts
118125
uses: actions/upload-artifact@v4
119126
with:
120-
name: profiler-${{ inputs.variant-prefix }}${{ inputs.variant.replace('/', '-') }}
127+
name: profiler-${{ inputs.variant-prefix }}${{ steps.sanitize.outputs.safe_variant }}
121128
path: |
122129
profile-out/*

0 commit comments

Comments
 (0)