Skip to content

Commit

Permalink
Change build variables conditional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
okiedork authored and flavioheleno committed Nov 7, 2022
1 parent d66c7ef commit f650432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
id: prepare-build
run: |
echo "short=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT
if [[ "${{ github.ref_name }}" == "main" ]]; then
if [[ "${{ github.ref_type }}" == "tag" ]]; then
echo "environment=prod" >> $GITHUB_OUTPUT
else
echo "environment=dev" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit f650432

Please sign in to comment.