Skip to content

Commit 34b72d5

Browse files
committed
Update workflow.yml
1 parent 7abbb47 commit 34b72d5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/workflow.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16-
- name: Declare some variables
17-
id: vars
18-
shell: bash
19-
run: |
20-
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
21-
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
16+
- id: get-branch-name
17+
run: echo "::set-output name=branch_name::$(git symbolic-ref --short HEAD)"
18+
shell: bash
2219

2320
- name: Cypress run
2421
uses: cypress-io/github-action@v2
@@ -27,5 +24,5 @@ jobs:
2724
VRT_PROJECT: "VRT"
2825
VRT_ENABLESOFTASSERT: false
2926
VRT_APIKEY: ${{ secrets.VRT_API_KEY }}
30-
VRT_BRANCHNAME: ${{ steps.vars.outputs.branch }}
27+
VRT_BRANCHNAME: ${{ steps.get-branch-name.outputs.branch_name }}
3128
VRT_CIBUILDID: "Github run_id: ${{ github.run_id }}"

0 commit comments

Comments
 (0)