Skip to content

Commit

Permalink
ci(github): update container workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhd1701 committed Oct 20, 2023
1 parent a7e0833 commit b22b8e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release_containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
checkout_latest:
description: 'Checkout latest tag'
required: true
default: 'yes'
type: boolean
default: true
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
Expand All @@ -25,7 +26,7 @@ jobs:
run: |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "TAG_VERSION=$LATEST_TAG" >> $GITHUB_ENV
[ "${{ github.event.inputs.checkout_latest }}" = "yes" ] && git checkout $LATEST_TAG
[[ "${{ inputs.checkout_latest }}" == "true" ]] && git checkout $LATEST_TAG
- name: Get push tag version
if: github.event_name == 'push'
Expand Down Expand Up @@ -57,7 +58,7 @@ jobs:
run: |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "TAG_VERSION=$LATEST_TAG" >> $GITHUB_ENV
[ "${{ github.event.inputs.checkout_latest }}" = "yes" ] && git checkout $LATEST_TAG
[[ "${{ inputs.checkout_latest }}" == "true" ]] && git checkout $LATEST_TAG
- name: Get push tag version
if: github.event_name == 'push'
Expand Down

0 comments on commit b22b8e1

Please sign in to comment.