Skip to content

Commit b44b4c7

Browse files
committed
Allow upercase letters and Remove leading hyphen test branches
1 parent 42674f3 commit b44b4c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
4646
env:
4747
GIT_REF: ${{ github.head_ref || 'master' }}
48-
run: docker build -t lowlighter/metrics:$(echo $GIT_REF | sed 's/[^a-z]/-/g') .
48+
run: docker build -t lowlighter/metrics:$(echo $GIT_REF | sed 's/[^a-zA-Z]/-/g') | sed 's/^-*//') .
4949
- name: Run tests
5050
env:
5151
GIT_REF: ${{ github.head_ref || 'master' }}
52-
run: docker run --rm --entrypoint="" lowlighter/metrics:$(echo $GIT_REF | sed 's/[^a-z]/-/g') npm run test-metrics
52+
run: docker run --rm --entrypoint="" lowlighter/metrics:$(echo $GIT_REF | sed 's/[^a-zA-Z]/-/g' | sed 's/^-*//')) npm run test-metrics
5353

5454
# Run CodeQL on branch
5555
analyze:

0 commit comments

Comments
 (0)