Skip to content

Commit 327f8ec

Browse files
author
mmahipal
committed
changed Github actions to use branch name as tag
1 parent ff23ae9 commit 327f8ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/github-actions.yml

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

4344
# extract branch name on pull request
4445
- name: Extract branch name
4546
if: github.event_name == 'pull_request'
46-
run: BRANCH_NAME=${GITHUB_HEAD_REF}
47+
env:
48+
BRANCH_NAME: ${GITHUB_HEAD_REF}
4749

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

0 commit comments

Comments
 (0)