Skip to content

Commit

Permalink
DEVOPS: GitHub action fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evmos-lde committed Oct 13, 2023
1 parent 57cbe6a commit 626c680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
case $GITHUB_REF in
refs/tags/*)
TAG_COMMIT=$(git rev-list -n 1 ${{ github.ref }})
BRANCHE=$(git branch -r --contains $TAG_COMMIT | sed 's/ *origin\///' | grep -v "HEAD" | head -n 1)
BRANCHE=$(git branch -r --contains $TAG_COMMIT | sed 's/ *origin\///' | grep -v "HEAD" | grep main)
if [ "$BRANCHE" == "main" ]; then
PATCH_ENV="production"
fi
Expand Down

0 comments on commit 626c680

Please sign in to comment.