Skip to content

Commit

Permalink
update operator-ui-ci tag conditional (#12607)
Browse files Browse the repository at this point in the history
* update operator-ui-ci tag conditional

* use main branch as default tag
  • Loading branch information
momentmaker authored Mar 27, 2024
1 parent 93ff878 commit 8c45b46
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/operator-ui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Operator UI CI
on:
pull_request:

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

jobs:
check-gql:
permissions:
Expand Down Expand Up @@ -44,8 +47,12 @@ jobs:
id: get-operator-ui-tag
shell: bash
run: |
TAG=$(cat ./operator_ui/TAG)
echo "TAG=$TAG" >> $GITHUB_OUTPUT
if [[ $BRANCH_NAME == release/* ]]; then
TAG=$(cat ./operator_ui/TAG)
echo "TAG=$TAG" >> $GITHUB_OUTPUT
else
echo "TAG=main" >> $GITHUB_OUTPUT
fi
- uses: convictional/trigger-workflow-and-wait@f69fa9eedd3c62a599220f4d5745230e237904be #v1.6.5
with:
Expand Down

0 comments on commit 8c45b46

Please sign in to comment.