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

Commit

Permalink
use head_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
wilgert committed Feb 1, 2020
1 parent e831675 commit 3b0dde0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Echo week folder and run tests
run: |
echo ${{github.repository}}
echo ${{github.ref}}
export WEEK=$(echo ${{github.ref}} | sed -E 's/.*w(eek)?[-_]?([0-9]).*/week\2/gi')
echo ${{github.head_ref}}
export WEEK=$(echo ${{github.head_ref}} | sed -E 's/.*w(eek)?[-_]?([0-9]).*/week\2/gi')
echo Week: ${WEEK}
npm run test-${WEEK}

0 comments on commit 3b0dde0

Please sign in to comment.