Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 08d7954

Browse files
committed
use head_ref
1 parent 4b56229 commit 08d7954

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Echo week folder and run tests
1717
run: |
1818
echo ${{github.repository}}
19-
echo ${{github.ref}}
20-
export WEEK=$(echo ${{github.ref}} | sed -E 's/.*w(eek)?[-_]?([0-9]).*/week\2/gi')
19+
echo ${{github.head_ref}}
20+
export WEEK=$(echo ${{github.head_ref}} | sed -E 's/.*w(eek)?[-_]?([0-9]).*/week\2/gi')
2121
echo Week: ${WEEK}
2222
npm run test-${WEEK}

0 commit comments

Comments
 (0)