Skip to content

Commit 6f19e6a

Browse files
committed
Update workflow.yml
1 parent ca5b6c0 commit 6f19e6a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/workflow.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,19 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16-
- name: Declare some env variables
17-
id: env_vars
16+
- name: Declare some variables
17+
id: vars
1818
shell: bash
1919
run: |
20-
echo "##[set-output name=branch_name;]$(echo ${GITHUB_REF#refs/heads/})"
21-
20+
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
21+
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
22+
-
2223
- name: Cypress run
2324
uses: cypress-io/github-action@v2
2425
env:
2526
VRT_APIURL: "http://162.243.161.172:4200"
2627
VRT_PROJECT: "VRT"
2728
VRT_ENABLESOFTASSERT: false
2829
VRT_APIKEY: ${{ secrets.VRT_API_KEY }}
29-
VRT_BRANCHNAME: ${{ steps.env_vars.outputs.branch_name }}
30+
VRT_BRANCHNAME: ${{ steps.vars.outputs.branch }}
3031
VRT_CIBUILDID: "Github run_id: ${{ github.run_id }}"

0 commit comments

Comments
 (0)