Skip to content

Commit ca5b6c0

Browse files
committed
Update workflow.yml
1 parent ee48647 commit ca5b6c0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/workflow.yml

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

16+
- name: Declare some env variables
17+
id: env_vars
18+
shell: bash
19+
run: |
20+
echo "##[set-output name=branch_name;]$(echo ${GITHUB_REF#refs/heads/})"
21+
1622
- name: Cypress run
1723
uses: cypress-io/github-action@v2
1824
env:
1925
VRT_APIURL: "http://162.243.161.172:4200"
2026
VRT_PROJECT: "VRT"
2127
VRT_ENABLESOFTASSERT: false
2228
VRT_APIKEY: ${{ secrets.VRT_API_KEY }}
23-
VRT_BRANCHNAME: ${{ $(git rev-parse --abbrev-ref HEAD) }}
29+
VRT_BRANCHNAME: ${{ steps.env_vars.outputs.branch_name }}
2430
VRT_CIBUILDID: "Github run_id: ${{ github.run_id }}"

0 commit comments

Comments
 (0)