Skip to content

Commit

Permalink
Update e2e.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Heba Elayoty <31887807+helayoty@users.noreply.github.com>
  • Loading branch information
helayoty authored Oct 3, 2023
1 parent 1aa4656 commit 294adae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ jobs:
submodules: true
fetch-depth: 0

- name: Shorten SHA
id: vars
run: echo "::set-output name=pr_sha_short::$(git rev-parse --short ${{ github.event.pull_request.head.sha }} )"

- name: Set e2e Resource and Cluster Name
run: |
rand=$(git rev-parse --short ${{ github.event.pull_request.head.sha }} )
rand=${{ steps.vars.outputs.pr_sha_short }}
if [ "$rand" = "" ]; then
rand=$RANDOM
Expand Down

0 comments on commit 294adae

Please sign in to comment.