Skip to content

Commit 969bceb

Browse files
authored
fix(ci): fix invalid replace() in e2e-staging artifact name (#8054)
1 parent d568c56 commit 969bceb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/e2e-staging.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
PAYLOAD_COMMIT_SHA: ${{ github.event.client_payload.clerk-go-commit-sha }}
6767
PAYLOAD_NOTIFY_SLACK: ${{ github.event.client_payload.notify-slack }}
6868
PAYLOAD_SDK_SOURCE: ${{ github.event.client_payload.sdk-source }}
69+
TEST_NAME: ${{ matrix.test-name }}
6970
run: |
7071
if [ "$EVENT_NAME" = "workflow_dispatch" ]; then
7172
echo "ref=${INPUT_REF:-main}" >> $GITHUB_OUTPUT
@@ -78,6 +79,7 @@ jobs:
7879
echo "notify-slack=${PAYLOAD_NOTIFY_SLACK:-true}" >> $GITHUB_OUTPUT
7980
echo "sdk-source=${PAYLOAD_SDK_SOURCE:-latest}" >> $GITHUB_OUTPUT
8081
fi
82+
echo "artifact-suffix=${TEST_NAME//:/-}" >> $GITHUB_OUTPUT
8183
8284
- name: Validate ref
8385
env:
@@ -198,7 +200,7 @@ jobs:
198200
if: ${{ cancelled() || failure() }}
199201
uses: actions/upload-artifact@v4
200202
with:
201-
name: playwright-traces-${{ github.run_id }}-${{ github.run_attempt }}-${{ replace(matrix.test-name, ':', '-') }}
203+
name: playwright-traces-${{ github.run_id }}-${{ github.run_attempt }}-${{ steps.inputs.outputs.artifact-suffix }}
202204
path: integration/test-results
203205
retention-days: 1
204206

0 commit comments

Comments
 (0)