Skip to content

Commit

Permalink
fix: check for target branch name instead of current for operator-ui-…
Browse files Browse the repository at this point in the history
…ci (#12618)
  • Loading branch information
momentmaker authored Mar 27, 2024
1 parent 8c45b46 commit 96e3901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/operator-ui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:

env:
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
TARGET_BRANCH_NAME: ${{ github.event.pull_request.base.ref }}

jobs:
check-gql:
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
id: get-operator-ui-tag
shell: bash
run: |
if [[ $BRANCH_NAME == release/* ]]; then
if [[ $TARGET_BRANCH_NAME == release/* ]]; then
TAG=$(cat ./operator_ui/TAG)
echo "TAG=$TAG" >> $GITHUB_OUTPUT
else
Expand Down

0 comments on commit 96e3901

Please sign in to comment.