Skip to content

Commit c798887

Browse files
author
mmahipal
committed
changed Github actions to use branch name as tag
1 parent cfea157 commit c798887

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/github-actions.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ jobs:
3838
# extract branch name
3939
- name: Extract branch name
4040
if: github.event_name != 'pull_request'
41-
shell: bash
42-
run: echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/})"
43-
id: extract_branch
41+
run: BRANCH_NAME=${GITHUB_REF#refs/heads/}"
4442

4543
# extract branch name on pull request
4644
- name: Extract branch name
4745
if: github.event_name == 'pull_request'
48-
run: echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_HEAD_REF})"
46+
run: BRANCH_NAME=${GITHUB_HEAD_REF}"
4947

5048
# Build and push Operator image (don't push on PR)
5149
- name: Build and push Docker image

0 commit comments

Comments
 (0)