Skip to content

Commit

Permalink
chore(cli): debug snapcraft yaml (heroku#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadian authored Aug 25, 2020
1 parent 8372094 commit 708d728
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ parts:
plugin: nil
override-pull: |
snapcraftctl pull
COMMIT_MSG=$(git log --max-count 1 --pretty="format:%s"m | awk '{print $1}')
COMMIT_MSG=$(git log --max-count 1 --pretty="format:%s" | awk '{print $1}')
CLI_VERSION=$(grep \"version\": packages/cli/package.json | head -n 1 | awk '{print $2}' | tr -d \" | tr -d \,)
echo "COMMIT_MSG"
echo $COMMIT_MSG
echo "CLI_VERSION"
echo $CLI_VERSION
if [ "$COMMIT_MSG" == "v$CLI_VERSION" ]; then
git tag "$COMMIT_MSG" -m "$COMMIT_MSG"
; fi
fi
override-build: |
set -ex
Expand Down

0 comments on commit 708d728

Please sign in to comment.